/** * Creates a new tree field only constructor {@code ABlockStmIR TAG=block} node with the given nodes as children. * @deprecated This method should not be used, use AstFactory instead. * The basic child nodes are removed from their previous parents. * @param scoped_ the {@link Boolean} node for the {@code scoped} child of this {@link ABlockStmIR} node * @param localDefs_ the {@link NodeList} node for the {@code localDefs} child of this {@link ABlockStmIR} node * @param statements_ the {@link NodeList} node for the {@code statements} child of this {@link ABlockStmIR} node */ public ABlockStmIR(Boolean scoped_, List<? extends AVarDeclIR> localDefs_, List<? extends SStmIR> statements_) { super(null,null,null); this.setScoped(scoped_); this.setLocalDefs(localDefs_); this.setStatements(statements_); }
/** * Creates a new complete constructor {@code ABlockStmIR} node with the given nodes as children. * @deprecated This method should not be used, use AstFactory instead. * The basic child nodes are removed from their previous parents. * @param scoped_ the {@link Boolean} node for the {@code scoped} child of this {@link ABlockStmIR} node * @param localDefs_ the {@link NodeList} node for the {@code localDefs} child of this {@link ABlockStmIR} node * @param statements_ the {@link NodeList} node for the {@code statements} child of this {@link ABlockStmIR} node */ public ABlockStmIR(SourceNode sourceNode_, Object tag_, List<? extends ClonableString> metaData_, Boolean scoped_, List<? extends AVarDeclIR> localDefs_, List<? extends SStmIR> statements_) { super(sourceNode_,tag_,metaData_); this.setScoped(scoped_); this.setLocalDefs(localDefs_); this.setStatements(statements_); }
liftedBlock.setLocalDefs(defsToLift); liftedBlock.setStatements(statementsToLift);