Represents a node that is passed as an argument to a method.
Inheritance: Node
        /// <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);
        }
Exemplo n.º 2
0
 /// <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);
 }