/** * Creates a new tree field only constructor {@code AIntPatternIR TAG=int} 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 value_ the {@link Long} node for the {@code value} child of this {@link AIntPatternIR} node */ public AIntPatternIR(Long value_) { super(null,null,null); this.setValue(value_); }
/** * Creates a new complete constructor {@code AIntPatternIR} 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 value_ the {@link Long} node for the {@code value} child of this {@link AIntPatternIR} node */ public AIntPatternIR(SourceNode sourceNode_, Object tag_, List<? extends ClonableString> metaData_, Long value_) { super(sourceNode_,tag_,metaData_); this.setValue(value_); }
@Override public SPatternIR caseAIntegerPattern(AIntegerPattern node, IRInfo question) throws AnalysisException { long value = node.getValue().getValue(); AIntPatternIR intPatternCg = new AIntPatternIR(); intPatternCg.setValue(value); return intPatternCg; }