/** * Creates a new complete constructor {@code AImportedDefinition} 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 def_ the {@link PDefinition} <b>graph</a> node for the {@code def} child of this {@link AImportedDefinition} node. * <i>The parent of this {@code def } will not be changed by adding it to this node.</i> * @param name_ the {@link ILexNameToken} <b>graph</a> node for the {@code name} child of this {@link AImportedDefinition} node. * <i>The parent of this {@code name } will not be changed by adding it to this node.</i> */ public AImportedDefinition(ILexLocation location_, NameScope nameScope_, Boolean used_, SClassDefinition classDefinition_, AAccessSpecifierAccessSpecifier access_, PType type_, Pass pass_, PDefinition def_, ILexNameToken name_) { super(location_,null,nameScope_,used_,classDefinition_,access_,type_,pass_); this.setDef(def_); this.setName(name_); }
public static AImportedDefinition newAImportedDefinition( ILexLocation location, PDefinition d) { AImportedDefinition result = new AImportedDefinition(); initDefinition(result, Pass.DEFS, location, d.getName(), d.getNameScope()); result.setDef(d); return result; }