Ejemplo n.º 1
0
 protected virtual T VisitPhpConditionalExpression(PhpConditionalExpression node)
 {
     if (ThrowNotImplementedException)
     {
         throw new NotImplementedException(string.Format("Method {0} is not supported in class {1}", "VisitPhpConditionalExpression", this.GetType().FullName));
     }
     return(default(T));
 }
Ejemplo n.º 2
0
        protected override IPhpValue VisitConditionalExpression(ConditionalExpression src)
        {
            var condition = TransValue(src.Condition);
            var whenTrue  = TransValue(src.WhenTrue);
            var whenFalse = TransValue(src.WhenFalse);
            var result    = new PhpConditionalExpression(condition, whenTrue, whenFalse);

            return(SimplifyPhpExpression(result));
        }
Ejemplo n.º 3
0
 protected override IPhpValue VisitPhpConditionalExpression(PhpConditionalExpression node)
 {
     return(node.Simplify(this));
 }