コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JsLogicalExpression"/> class.
 /// </summary>
 /// <param name="left">The left.</param>
 /// <param name="operator">The operator.</param>
 /// <param name="right">The right.</param>
 /// <exception cref="ServiceStack.Script.SyntaxErrorException">Left Expression missing in Logical Expression</exception>
 /// <exception cref="ServiceStack.Script.SyntaxErrorException">Operator missing in Logical Expression</exception>
 /// <exception cref="ServiceStack.Script.SyntaxErrorException">Right Expression missing in Logical Expression</exception>
 public JsLogicalExpression(JsToken left, JsLogicOperator @operator, JsToken right)
 {
     Left     = left ?? throw new SyntaxErrorException("Left Expression missing in Logical Expression");
     Operator = @operator ?? throw new SyntaxErrorException("Operator missing in Logical Expression");
     Right    = right ?? throw new SyntaxErrorException("Right Expression missing in Logical Expression");
 }
コード例 #2
0
 public JsLogicalExpression(JsToken left, JsLogicOperator operand, JsToken right)
 {
     Left    = left;
     Operand = operand;
     Right   = right;
 }