Skip to content
Snippets Groups Projects
Commit a72d95b0 authored by Jan Gruteser's avatar Jan Gruteser
Browse files

make UsedExternalFunctions local in BAstCreator

parent 674247d7
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,6 @@ public class BAstCreator extends BuiltInOPs implements TranslationGlobals, BBuil
private List<OpDeclNode> bConstants;
private final ModuleNode moduleNode;
private UsedExternalFunctions usedExternalFunctions;
private final Definitions bDefinitions = new Definitions();
......@@ -90,7 +89,6 @@ public class BAstCreator extends BuiltInOPs implements TranslationGlobals, BBuil
this.moduleNode = moduleNode;
this.specAnalyser = specAnalyser;
this.usedExternalFunctions = new UsedExternalFunctions(moduleNode, specAnalyser);
this.predicateVsExpression = new PredicateVsExpression(moduleNode);
this.bMacroHandler = new BMacroHandler(specAnalyser, conEval);
this.recursiveFunctionHandler = new RecursiveFunctionHandler(specAnalyser);
......@@ -175,7 +173,7 @@ public class BAstCreator extends BuiltInOPs implements TranslationGlobals, BBuil
}
}
Set<EXTERNAL_FUNCTIONS> set = usedExternalFunctions.getUsedExternalFunctions();
Set<EXTERNAL_FUNCTIONS> set = new UsedExternalFunctions(moduleNode, specAnalyser).getUsedExternalFunctions();
List<PDefinition> defs = new ArrayList<>(createDefinitionsForExternalFunctions(set));
for (OpDefNode opDefNode : bDefs) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment