Permalink
Browse files

Removed a hack while renaming.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
  • Loading branch information...
ddobrev committed Jul 26, 2017
1 parent e62651a commit 0124c434392d74d932590ed42b9dd134bec3786c
Showing with 8 additions and 2 deletions.
  1. +8 −2 src/Generator/Passes/RenamePass.cs
@@ -218,7 +218,8 @@ private static IEnumerable<Function> GetFunctionsWithTheSameParams(Function func
public override bool VisitClassDecl(Class @class)
{
base.VisitClassDecl(@class);
if (!base.VisitClassDecl(@class))
return false;
foreach (var property in @class.Properties.OrderByDescending(p => p.Access))
VisitProperty(property);
@@ -232,9 +233,14 @@ public override bool VisitClassDecl(Class @class)
return true;
}
public override bool VisitFieldDecl(Field field)
{
return VisitDeclaration(field);
}
public override bool VisitParameterDecl(Parameter parameter)
{
return base.VisitDeclaration(parameter);
return VisitDeclaration(parameter);
}
}

0 comments on commit 0124c43

Please sign in to comment.