/** * Creates a new complete constructor {@code ARenamedDefinition} 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 ARenamedDefinition} node. * <i>The parent of this {@code def } will not be changed by adding it to this node.</i> */ public ARenamedDefinition(ILexLocation location_, ILexNameToken name_, NameScope nameScope_, Boolean used_, SClassDefinition classDefinition_, AAccessSpecifierAccessSpecifier access_, PType type_, Pass pass_, PDefinition def_) { super(location_,name_,nameScope_,used_,classDefinition_,access_,type_,pass_); this.setDef(def_); }
public static ARenamedDefinition newARenamedDefinition(ILexNameToken name, PDefinition def) { ARenamedDefinition result = new ARenamedDefinition(); initDefinition(result, def.getPass(), name.getLocation(), name, def.getNameScope()); result.setDef(def); return result; }