public static PDefinition newAUntypedDefinition(ILexLocation location, ILexNameToken name, NameScope scope) { AUntypedDefinition result = new AUntypedDefinition(); // Definition initialization initDefinition(result, Pass.DEFS, location, name, scope); return result; }
/** * Returns a deep clone of this {@link AUntypedDefinition} node. * @return a deep clone of this {@link AUntypedDefinition} node */ public AUntypedDefinition clone() { return new AUntypedDefinition( _location, _name, _nameScope, _used, _classDefinition, cloneNode(_access), _type, _pass ); }
/** * Creates a deep clone of this {@link AUntypedDefinition} node while putting all * old node-new node relations in the map {@code oldToNewMap}. * @param oldToNewMap the map filled with the old node-new node relation * @return a deep clone of this {@link AUntypedDefinition} node */ public AUntypedDefinition clone(Map<INode,INode> oldToNewMap) { AUntypedDefinition node = new AUntypedDefinition( _location, _name, _nameScope, _used, _classDefinition, cloneNode(_access, oldToNewMap), _type, _pass ); oldToNewMap.put(this, node); return node; }