/** * Creates a new tree field only constructor {@code AAssignmentDefinition TAG=assignment} 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 expression_ the {@link PExp} node for the {@code expression} child of this {@link AAssignmentDefinition} node */ public AAssignmentDefinition(ILexLocation location_, NameScope nameScope_, Boolean used_, AAccessSpecifierAccessSpecifier access_, Pass pass_, PExp expression_) { super(location_,null,nameScope_,used_,null,access_,null,pass_); this.setExpression(expression_); }
/** * Creates a new complete constructor {@code AAssignmentDefinition} 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 expression_ the {@link PExp} node for the {@code expression} child of this {@link AAssignmentDefinition} node * @param expType_ the {@link PType} <b>graph</a> node for the {@code expType} child of this {@link AAssignmentDefinition} node. * <i>The parent of this {@code expType } will not be changed by adding it to this node.</i> */ public AAssignmentDefinition(ILexLocation location_, ILexNameToken name_, NameScope nameScope_, Boolean used_, SClassDefinition classDefinition_, AAccessSpecifierAccessSpecifier access_, PType type_, Pass pass_, PExp expression_, PType expType_) { super(location_,name_,nameScope_,used_,classDefinition_,access_,type_,pass_); this.setExpression(expression_); this.setExpType(expType_); }
public static AAssignmentDefinition newAAssignmentDefinition( ILexNameToken name, PType type, PExp exp) { AAssignmentDefinition result = new AAssignmentDefinition(); initDefinition(result, Pass.VALUES, name.getLocation(), name, NameScope.STATE); result.setType(type); result.setExpression(exp); result.getLocation().executable(false); return result; }