/** * Creates a new tree field only constructor {@code ACallStm TAG=call} 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 name_ the {@link ILexNameToken} node for the {@code name} child of this {@link ACallStm} node * @param args_ the {@link NodeList} node for the {@code args} child of this {@link ACallStm} node */ public ACallStm(ILexLocation location_, ILexNameToken name_, List<? extends PExp> args_) { super(location_,null); this.setName(name_); this.setArgs(args_); }
/** * Creates a new complete constructor {@code ACallStm} 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 name_ the {@link ILexNameToken} node for the {@code name} child of this {@link ACallStm} node * @param args_ the {@link NodeList} node for the {@code args} child of this {@link ACallStm} node * @param rootdef_ the {@link PDefinition} <b>graph</a> node for the {@code rootdef} child of this {@link ACallStm} node. * <i>The parent of this {@code rootdef } will not be changed by adding it to this node.</i> */ public ACallStm(ILexLocation location_, PType type_, ILexNameToken name_, List<? extends PExp> args_, PDefinition rootdef_) { super(location_,type_); this.setName(name_); this.setArgs(args_); this.setRootdef(rootdef_); }
public static ACallStm newACallStm(ILexNameToken name, List<PExp> args) { ACallStm result = new ACallStm(); initStatement(result, name.getLocation()); result.setName(name); result.setArgs(args); return result; }