/** * Creates a new tree field only constructor {@code AEqualsDefinition TAG=equals} 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 pattern_ the {@link PPattern} node for the {@code pattern} child of this {@link AEqualsDefinition} node * @param typebind_ the {@link ATypeBind} node for the {@code typebind} child of this {@link AEqualsDefinition} node * @param setbind_ the {@link ASetBind} node for the {@code setbind} child of this {@link AEqualsDefinition} node * @param seqbind_ the {@link ASeqBind} node for the {@code seqbind} child of this {@link AEqualsDefinition} node * @param test_ the {@link PExp} node for the {@code test} child of this {@link AEqualsDefinition} node * @param defs_ the {@link NodeList} node for the {@code defs} child of this {@link AEqualsDefinition} node */ public AEqualsDefinition(ILexLocation location_, NameScope nameScope_, Boolean used_, AAccessSpecifierAccessSpecifier access_, Pass pass_, PPattern pattern_, ATypeBind typebind_, ASetBind setbind_, ASeqBind seqbind_, PExp test_, List<? extends PDefinition> defs_) { super(location_,null,nameScope_,used_,null,access_,null,pass_); this.setPattern(pattern_); this.setTypebind(typebind_); this.setSetbind(setbind_); this.setSeqbind(seqbind_); this.setTest(test_); this.setDefs(defs_); }
/** * Creates a new complete constructor {@code AEqualsDefinition} 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 pattern_ the {@link PPattern} node for the {@code pattern} child of this {@link AEqualsDefinition} node * @param typebind_ the {@link ATypeBind} node for the {@code typebind} child of this {@link AEqualsDefinition} node * @param setbind_ the {@link ASetBind} node for the {@code setbind} child of this {@link AEqualsDefinition} node * @param seqbind_ the {@link ASeqBind} node for the {@code seqbind} child of this {@link AEqualsDefinition} node * @param test_ the {@link PExp} node for the {@code test} child of this {@link AEqualsDefinition} node * @param expType_ the {@link PType} <b>graph</a> node for the {@code expType} child of this {@link AEqualsDefinition} node. * <i>The parent of this {@code expType } will not be changed by adding it to this node.</i> * @param defType_ the {@link PType} <b>graph</a> node for the {@code defType} child of this {@link AEqualsDefinition} node. * <i>The parent of this {@code defType } will not be changed by adding it to this node.</i> * @param defs_ the {@link NodeList} node for the {@code defs} child of this {@link AEqualsDefinition} node */ public AEqualsDefinition(ILexLocation location_, ILexNameToken name_, NameScope nameScope_, Boolean used_, SClassDefinition classDefinition_, AAccessSpecifierAccessSpecifier access_, PType type_, Pass pass_, PPattern pattern_, ATypeBind typebind_, ASetBind setbind_, ASeqBind seqbind_, PExp test_, PType expType_, PType defType_, List<? extends PDefinition> defs_) { super(location_,name_,nameScope_,used_,classDefinition_,access_,type_,pass_); this.setPattern(pattern_); this.setTypebind(typebind_); this.setSetbind(setbind_); this.setSeqbind(seqbind_); this.setTest(test_); this.setExpType(expType_); this.setDefType(defType_); this.setDefs(defs_); }
node.setDefs(question.assistantFactory.createPPatternAssistant().getDefinitions(pattern, node.getExpType(), question.scope)); node.setDefType(node.getExpType()); node.setDefs(question.assistantFactory.createPPatternAssistant().getDefinitions(typebind.getPattern(), node.getDefType(), question.scope)); node.setDefs(question.assistantFactory.createPPatternAssistant().getDefinitions(node.getSetbind().getPattern(), node.getDefType(), question.scope)); node.setDefs(question.assistantFactory.createPPatternAssistant().getDefinitions(node.getSeqbind().getPattern(), node.getDefType(), question.scope));