use of cz.cuni.mff.d3s.trupple.parser.exceptions.UnknownIdentifierException in project TrufflePascal by Aspect26.
the class IdentifiersTable method setSubroutineRootNode.
public void setSubroutineRootNode(String identifier, PascalRootNode rootNode) throws LexicalException {
TypeDescriptor descriptor = this.identifiersMap.get(identifier);
if (descriptor == null) {
throw new UnknownIdentifierException(identifier);
}
((SubroutineDescriptor) descriptor).setRootNode(rootNode);
}
Aggregations