/** * Creates a new complete constructor {@code AExitStmIR} 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 exp_ the {@link SExpIR} node for the {@code exp} child of this {@link AExitStmIR} node */ public AExitStmIR(SourceNode sourceNode_, Object tag_, List<? extends ClonableString> metaData_, SExpIR exp_) { super(sourceNode_,tag_,metaData_); this.setExp(exp_); }
/** * Creates a new tree field only constructor {@code AExitStmIR TAG=exit} 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 exp_ the {@link SExpIR} node for the {@code exp} child of this {@link AExitStmIR} node */ public AExitStmIR(SExpIR exp_) { super(null,null,null); this.setExp(exp_); }
@Override public SStmIR caseAExitStm(AExitStm node, IRInfo question) throws AnalysisException { SExpIR expCg = node.getExpression() != null ? node.getExpression().apply(question.getExpVisitor(), question) : null; AExitStmIR exitCg = new AExitStmIR(); exitCg.setExp(expCg); return exitCg; }