Skip to content

Commit 4775ebd

Browse files
committed
Fix CppType.FullName to never fail
1 parent 953d9f8 commit 4775ebd

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/CppAst/CppElement.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Alexandre Mutel. All rights reserved.
1+
// Copyright (c) Alexandre Mutel. All rights reserved.
22
// Licensed under the BSD-Clause 2 license.
33
// See license.txt file in the project root for full license information.
44

@@ -51,14 +51,10 @@ public string FullParentName
5151
}
5252
p = ns.Parent;
5353
}
54-
else if (p is CppCompilation)
55-
{
56-
// root namespace here, just ignore~
57-
p = null;
58-
}
5954
else
6055
{
61-
throw new NotImplementedException("Can not be here, not support type here!");
56+
// root namespace here, or no known parent, just ignore~
57+
p = null;
6258
}
6359
}
6460

0 commit comments

Comments
 (0)