/** * Creates a new complete constructor {@code AFunctionType} 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 partial_ the {@link Boolean} node for the {@code partial} child of this {@link AFunctionType} node * @param parameters_ the {@link GraphNodeList} <b>graph</a> node for the {@code parameters} child of this {@link AFunctionType} node. * <i>The parent of this {@code parameters } will not be changed by adding it to this node.</i> * @param result_ the {@link PType} <b>graph</a> node for the {@code result} child of this {@link AFunctionType} node. * <i>The parent of this {@code result } will not be changed by adding it to this node.</i> * @param instantiated_ the {@link Boolean} node for the {@code instantiated} child of this {@link AFunctionType} node */ public AFunctionType(ILexLocation location_, Boolean resolved_, List<? extends PDefinition> definitions_, Boolean partial_, List<? extends PType> parameters_, PType result_, Boolean instantiated_) { super(location_,resolved_,definitions_); this.setPartial(partial_); this.setParameters(parameters_); this.setResult(result_); this.setInstantiated(instantiated_); }
public static AFunctionType newAFunctionType(ILexLocation location, boolean partial, List<PType> parameters, PType resultType) { AFunctionType result = new AFunctionType(); initType(result, location); result.setParameters(parameters); result.setResult(resultType); result.setPartial(partial); result.setInstantiated(null); return result; }
type.setParameters(fixed); type.setResult(af.createPTypeAssistant().typeResolve(type.getResult(), question.root, question.rootVisitor, question.question));