/** * Creates a new tree field only constructor {@code AQuoteTypeIR TAG=quote} 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 String} node for the {@code value} child of this {@link AQuoteTypeIR} node */ public AQuoteTypeIR(Boolean optional_, ANamedTypeDeclIR namedInvType_, String value_) { super(null,null,null,optional_,namedInvType_); this.setValue(value_); }
/** * Creates a new complete constructor {@code AQuoteTypeIR} 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 String} node for the {@code value} child of this {@link AQuoteTypeIR} node */ public AQuoteTypeIR(SourceNode sourceNode_, Object tag_, List<? extends ClonableString> metaData_, Boolean optional_, ANamedTypeDeclIR namedInvType_, String value_) { super(sourceNode_,tag_,metaData_,optional_,namedInvType_); this.setValue(value_); }
@Override public void caseAQuotePatternIR(AQuotePatternIR node, STypeIR question) throws AnalysisException { AQuoteTypeIR quoteTypeCg = new AQuoteTypeIR(); quoteTypeCg.setValue(node.getValue()); storeType(node, quoteTypeCg); }
@Override public STypeIR caseAQuoteType(AQuoteType node, IRInfo question) throws AnalysisException { String value = node.getValue().getValue(); AQuoteTypeIR quoteTypeCg = new AQuoteTypeIR(); quoteTypeCg.setValue(value); question.registerQuoteValue(value); return quoteTypeCg; }
public AQuoteLiteralExpIR consQuoteLiteral(String value) { AQuoteLiteralExpIR quoteLiteral = new AQuoteLiteralExpIR(); AQuoteTypeIR type = new AQuoteTypeIR(); type.setValue(value); quoteLiteral.setType(type); quoteLiteral.setValue(value); return quoteLiteral; }
qt.setValue(((AQuotePatternIR) pat).getValue()); return qt; } else if (pat instanceof ARealPatternIR)