Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
krinara86 committed Feb 9, 2021
1 parent c69cebf commit ea97afa
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1335,7 +1335,7 @@ public boolean visit(MethodDeclaration node) {
curMethod.addParameter(new SimpleEntry<String, String>(svd.getName().getFullyQualifiedName(), svd.getType().toString()));
}
curMethod.setNumberOfVariablesInTemplate(curMethod.getDeclaredVariables().size());
templateClass.addMethod(curMethod);
//templateClass.addMethod(curMethod);
return super.visit(node);
}

Expand All @@ -1345,6 +1345,7 @@ public void endVisit(MethodDeclaration node) {
curMethod.setRules(new ArrayList<>(rules));
postCGVars.entrySet().forEach(e -> curMethod.addPostCGVars(new SimpleEntry<String, String>(e.getKey().getFullyQualifiedName(), e.getValue().getJavaType())));
rules.clear();
templateClass.addMethod(curMethod);
super.visit(node);
}

Expand Down

0 comments on commit ea97afa

Please sign in to comment.