/// <summary>
 /// Visits a QueryExpression tree whose root node is the QueryNullExpression.
 /// </summary>
 /// <param name="expression">The root node of the expression tree being visited.</param>
 /// <returns>Uri query string representing the expression.</returns>
 public override string Visit(QueryNullExpression expression)
 {
     return this.literalConverter.SerializePrimitive(null);
 }
 /// <summary>
 /// Replaces the given expression.
 /// </summary>
 /// <param name="expression">Expression to replace.</param>
 /// <returns>Replaced expression.</returns>
 public virtual QueryExpression Visit(QueryNullExpression expression)
 {
     return(expression);
 }
Esempio n. 3
0
 /// <summary>
 /// Visits a QueryExpression tree whose root node is the QueryNullExpression.
 /// </summary>
 /// <param name="expression">The root node of the expression tree being visited.</param>
 /// <returns>Uri query string representing the expression.</returns>
 public virtual string Visit(QueryNullExpression expression)
 {
     throw new TaupoNotSupportedException("Not supported");
 }
Esempio n. 4
0
 /// <summary>
 /// Generates System.CodeDom.CodeExpression from the given expression.
 /// </summary>
 /// <param name="expression">Expression from which System.CodeDom.CodeExpression is generated.</param>
 /// <returns>Generated System.CodeDom.CodeExpression.</returns>
 public virtual CodeExpression Visit(QueryNullExpression expression)
 {
     return(Code.Null());
 }
 /// <summary>
 /// Visits a QueryExpression tree whose root node is the QueryNullExpression.
 /// </summary>
 /// <param name="expression">The root node of the expression tree being visited.</param>
 /// <returns>Uri query string representing the expression.</returns>
 public override string Visit(QueryNullExpression expression)
 {
     return(this.literalConverter.SerializePrimitive(null));
 }
Esempio n. 6
0
 /// <summary>
 /// Evaluates the specified expression.
 /// </summary>
 /// <param name="expression">The expression to evaluate.</param>
 /// <returns>Value of the expression.</returns>
 public QueryValue Visit(QueryNullExpression expression)
 {
     return(expression.ExpressionType.NullValue);
 }