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

minor simplification

parent 9301c02f
No related branches found
No related tags found
No related merge requests found
Pipeline #144600 passed
......@@ -377,8 +377,7 @@ public class BAstCreator extends BuiltInOPs
List<PExpression> constantsList = new ArrayList<>();
for (OpDeclNode opDeclNode : bConstants) {
AIdentifierExpression id = createPositionedNode(
new AIdentifierExpression(createTIdentifierLiteral(getName(opDeclNode))), opDeclNode);
AIdentifierExpression id = createPositionedNode(createIdentifierNode(getName(opDeclNode)), opDeclNode);
constantsList.add(id);
TLAType type = (TLAType) opDeclNode.getToolObject(TYPE_ID);
types.put(id, type);
......@@ -397,6 +396,10 @@ public class BAstCreator extends BuiltInOPs
}
}
public static AIdentifierExpression createIdentifierNode(String name) {
return new AIdentifierExpression(createTIdentifierLiteral(name));
}
private void createPropertyClause() {
List<PPredicate> propertiesList = new ArrayList<>();
propertiesList.addAll(evalRecursiveDefinitions());
......@@ -2311,10 +2314,6 @@ public class BAstCreator extends BuiltInOPs
}
}
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