private static EvaluationResult Result(object value)
 {
     return(EvaluationResult.Result(value));
 }
 private static EvaluationResult Error(string message)
 {
     return(EvaluationResult.Error(message));
 }
Example #3
0
 public override EvaluationResult ComparisonOperator(EvaluationResult value, EvaluationResult other)
 {
     return(Error("Boolean values can only be compared to other boolean values"));
 }
        private EvaluationResult EvaluateLogicalOr(EvaluationResult left, EvaluationResult right)
        {
            var type = PrimitiveType.InstanceFor(left.Value);

            return(type.LogicalOr(left, right));
        }
Example #5
0
 protected EvaluationResult Result(object value)
 {
     return(EvaluationResult.Result(value));
 }
Example #6
0
 protected EvaluationResult Error(string message)
 {
     return(EvaluationResult.Error(message));
 }
Example #7
0
 public abstract EvaluationResult ComparisonOperator(EvaluationResult value, EvaluationResult other);
Example #8
0
 public abstract EvaluationResult LogicalOr(EvaluationResult value, EvaluationResult other);
Example #9
0
 public override EvaluationResult LogicalOr(EvaluationResult value, EvaluationResult other)
 {
     return(value);
 }
Example #10
0
 public abstract EvaluationResult EqualityOperator(EvaluationResult value, EvaluationResult other);
Example #11
0
 public override EvaluationResult ComparisonOperator(EvaluationResult value, EvaluationResult other)
 {
     return(value);
 }
Example #12
0
 public override EvaluationResult EqualityOperator(EvaluationResult value, EvaluationResult other)
 {
     return(value);
 }
Example #13
0
 public override EvaluationResult ComparisonOperator(EvaluationResult value, EvaluationResult other)
 {
     return(Error("'null' values can not be compared"));
 }
Example #14
0
 public override EvaluationResult EqualityOperator(EvaluationResult value, EvaluationResult other)
 {
     return(Result(value.IsNull && other.IsNull));
 }
Example #15
0
 public override EvaluationResult LogicalAnd(EvaluationResult value, EvaluationResult other)
 {
     return(other);
 }