/// <summary> /// Creates a new ArgumentNode from the given parameters, and adds it to the SecondaryArguments list. /// </summary> /// <param name="argument">The node that is serving as the argument.</param> /// <param name="preposition">The preposition describing the argument's relation to the method.</param> public void AddSecondaryArgument(Node argument, WordNode preposition) { if (this.SecondaryArguments == null) { this.SecondaryArguments = new List <ArgumentNode>(); } ArgumentNode an = new ArgumentNode(argument, preposition); this.SecondaryArguments.Add(an); }
/// <summary> /// Creates a new ArgumentNode from the given parameters, and adds it to the SecondaryArguments list. /// </summary> /// <param name="argument">The node that is serving as the argument.</param> /// <param name="preposition">The preposition describing the argument's relation to the method.</param> public void AddSecondaryArgument(Node argument, WordNode preposition) { if(this.SecondaryArguments == null) { this.SecondaryArguments = new List<ArgumentNode>(); } ArgumentNode an = new ArgumentNode(argument, preposition); this.SecondaryArguments.Add(an); }