/// <summary>
 /// Initializes the node after being parsed by the parser.
 /// </summary>
 /// <param name="expression">Expression that's being enclosed by the parentheses.</param>
 /// <param name="rightParenthesis">Right closingparenthesis of the parenthesized expression.</param>
 protected internal void SetContents(ExpressionNode expression, SpecialCharacterToken rightParenthesis)
 {
     if (expression == null)
         throw new ArgumentNullException("expression");
     if ((rightParenthesis != null) && !Parser.IsClosingParenthesis(rightParenthesis)) // Must allow for null
         throw new ArgumentException("rightParenthesis");
     this.Expression = expression;
     this.RightParenthesis = rightParenthesis;
 }
示例#2
0
 /// <summary>
 /// Initializes the node after being parsed by the parser.
 /// </summary>
 /// <param name="expression">Expression node defining the statement.</param>
 /// <param name="period">Optional period that terminates a statement.</param>
 /// <param name="nextStatement">Optional statement node that follows this statement.</param>
 protected internal void SetContents(ExpressionNode expression, SpecialCharacterToken period, StatementNode nextStatement)
 {
     if (expression == null)
         throw new ArgumentNullException("expression");
     this.Expression = expression;
     this.Period = period; // Null is OK here.
     this.NextStatement = nextStatement; // Null is OK here.
 }
 /// <summary>
 /// Initializes the node after being parsed by the parser.
 /// </summary>
 /// <param name="expression"></param>
 protected internal void SetContents(ExpressionNode expression)
 {
     if (expression == null)
         throw new ArgumentNullException("expression");
     this.Expression = expression;
 }