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

fix position infos for operation identifiers

parent d217d448
No related branches found
No related tags found
No related merge requests found
......@@ -98,7 +98,7 @@ public class BOperation extends BuiltInOPs implements ASTConstants, ToolGlobals,
return new AOperation(
new ArrayList<>(),
BAstCreator.createTIdentifierLiteral(name),
bASTCreator.createPositionedTIdentifierLiteral(name, getNode()),
this.getFormalParams().stream().map(bASTCreator::createIdentifierNode).collect(Collectors.toList()),
operationBody
);
......
......@@ -2353,6 +2353,10 @@ public class BAstCreator extends BuiltInOPs
return Collections.singletonList(new TIdentifierLiteral(name));
}
public List<TIdentifierLiteral> createPositionedTIdentifierLiteral(String name, SemanticNode node) {
return Collections.singletonList(createPositionedNode(new TIdentifierLiteral(name), node));
}
public Start getStartNode() {
return start;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment