use of cz.cuni.mff.d3s.trupple.language.nodes.statement.BlockNode in project TrufflePascal by Aspect26.
the class UnitLexicalScope method createInitializationBlock.
@Override
BlockNode createInitializationBlock() {
VirtualFrame unitFrame = PascalLanguage.INSTANCE.createUnitFrame(this.getName(), this.getFrameDescriptor());
List<StatementNode> initializationNodes = this.generateInitializationNodes(unitFrame);
initializationNodes.addAll(this.scopeInitializationNodes);
return new BlockNode(initializationNodes.toArray(new StatementNode[initializationNodes.size()]));
}
Aggregations