/** * Creates a new complete constructor {@code AFunctionValueImport} 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 typeParams_ the {@link NodeList} node for the {@code typeParams} child of this {@link AFunctionValueImport} node */ public AFunctionValueImport(ILexLocation location_, ILexNameToken name_, ILexNameToken renamed_, AModuleModules from_, PType importType_, List<? extends ILexNameToken> typeParams_) { super(location_,name_,renamed_,from_,importType_); this.setTypeParams(typeParams_); }
/** * Creates a new tree field only constructor {@code AFunctionValueImport TAG=function} 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 typeParams_ the {@link NodeList} node for the {@code typeParams} child of this {@link AFunctionValueImport} node */ public AFunctionValueImport(ILexLocation location_, ILexNameToken name_, ILexNameToken renamed_, List<? extends ILexNameToken> typeParams_) { super(location_,name_,renamed_,null,null); this.setTypeParams(typeParams_); }
public static AFunctionValueImport newAFunctionValueImport( ILexNameToken defname, PType type, LexNameList typeParams, ILexNameToken renamed) { AFunctionValueImport result = new AFunctionValueImport(); result.setLocation(defname.getLocation()); result.setName(defname); result.setRenamed(renamed); result.setImportType(type); result.setTypeParams(typeParams); return result; }