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

move helper methods

parent c025f321
No related branches found
No related tags found
No related merge requests found
......@@ -327,18 +327,6 @@ public class BAstCreator extends BuiltInOPs implements TranslationGlobals, BBuil
}
}
public AIdentifierExpression createIdentifierNode(SymbolNode symbolNode) {
if (bMacroHandler.containsSymbolNode(symbolNode)) {
return createPositionedNode(createIdentifierNode(bMacroHandler.getNewName(symbolNode)), symbolNode);
} else {
return createPositionedNode(createIdentifierNode(symbolNode.getName().toString()), symbolNode);
}
}
public static AIdentifierExpression createIdentifierNode(String name) {
return new AIdentifierExpression(createTIdentifierLiteral(name));
}
private void createPropertyClause() {
List<PPredicate> propertiesList = new ArrayList<>();
propertiesList.addAll(evalRecursiveDefinitions());
......@@ -2182,6 +2170,20 @@ public class BAstCreator extends BuiltInOPs implements TranslationGlobals, BBuil
}
}
// HELPER METHODS
public AIdentifierExpression createIdentifierNode(SymbolNode symbolNode) {
if (bMacroHandler.containsSymbolNode(symbolNode)) {
return createPositionedNode(createIdentifierNode(bMacroHandler.getNewName(symbolNode)), symbolNode);
} else {
return createPositionedNode(createIdentifierNode(symbolNode.getName().toString()), symbolNode);
}
}
public static AIdentifierExpression createIdentifierNode(String name) {
return new AIdentifierExpression(createTIdentifierLiteral(name));
}
public PPredicate createConjunction(List<PPredicate> list) {
if (list.size() == 1)
return list.get(0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment