Exemple #1
0
 protected virtual T VisitPhpIfStatement(PhpIfStatement node)
 {
     if (ThrowNotImplementedException)
     {
         throw new NotImplementedException(string.Format("Method {0} is not supported in class {1}", "VisitPhpIfStatement", this.GetType().FullName));
     }
     return(default(T));
 }
        protected override IPhpStatement[] VisitIfStatement(IfStatement src)
        {
            var condition = TransValue(src.Condition);
            var ifTrue    = TranslateStatementOne(src.IfTrue);
            var ifFalse   = TranslateStatementOne(src.IfFalse);
            var a         = new PhpIfStatement(condition, ifTrue, ifFalse);

            return(MkArray(a));
        }
 protected override IPhpStatement VisitPhpIfStatement(PhpIfStatement node)
 {
     return(node.Simplify(this));
 }