|
|
|
@ -153,7 +153,7 @@ namespace CppSharp.Passes
@@ -153,7 +153,7 @@ namespace CppSharp.Passes
|
|
|
|
|
string newName; |
|
|
|
|
if (!Rename(decl, out newName) || AreThereConflicts(decl, newName)) |
|
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
decl.Name = newName; |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
@ -271,6 +271,16 @@ namespace CppSharp.Passes
@@ -271,6 +271,16 @@ namespace CppSharp.Passes
|
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override bool VisitEnumDecl(Enumeration @enum) |
|
|
|
|
{ |
|
|
|
|
VisitDeclaration(@enum); |
|
|
|
|
|
|
|
|
|
foreach (var item in @enum.Items) |
|
|
|
|
VisitEnumItemDecl(item); |
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override bool VisitFieldDecl(Field field) |
|
|
|
|
{ |
|
|
|
|
return VisitDeclaration(field); |
|
|
|
|