public static AFuncInstatiationExp newAFuncInstatiationExp(PExp function, List<PType> types) { AFuncInstatiationExp result = new AFuncInstatiationExp(); result.setLocation(function.getLocation()); result.setFunction(function); result.setActualTypes(types); return result; }
/** * Creates a new complete constructor {@code AFuncInstatiationExp} 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 function_ the {@link PExp} node for the {@code function} child of this {@link AFuncInstatiationExp} node * @param actualTypes_ the {@link GraphNodeList} <b>graph</a> node for the {@code actualTypes} child of this {@link AFuncInstatiationExp} node. * <i>The parent of this {@code actualTypes } will not be changed by adding it to this node.</i> * @param expdef_ the {@link AExplicitFunctionDefinition} <b>graph</a> node for the {@code expdef} child of this {@link AFuncInstatiationExp} node. * <i>The parent of this {@code expdef } will not be changed by adding it to this node.</i> * @param impdef_ the {@link AImplicitFunctionDefinition} <b>graph</a> node for the {@code impdef} child of this {@link AFuncInstatiationExp} node. * <i>The parent of this {@code impdef } will not be changed by adding it to this node.</i> */ public AFuncInstatiationExp(PType type_, ILexLocation location_, PExp function_, List<? extends PType> actualTypes_, AExplicitFunctionDefinition expdef_, AImplicitFunctionDefinition impdef_) { super(type_,location_); this.setFunction(function_); this.setActualTypes(actualTypes_); this.setExpdef(expdef_); this.setImpdef(impdef_); }
func_exp.setActualTypes(cloneListType(fie.getActualTypes())); func_exp.setFunction(wrapName(measure.clone())); start = func_exp;
func_exp.setActualTypes(cloneListType(apply.getArgtypes())); // Not sure about this? func_exp.setFunction(wrapName(measure.clone())); apply_exp.setRoot(func_exp);
node.setActualTypes(fixed);