Esempio n. 1
0
 protected virtual T VisitPhpWhileStatement(PhpWhileStatement node)
 {
     if (ThrowNotImplementedException)
     {
         throw new NotImplementedException(string.Format("Method {0} is not supported in class {1}", "VisitPhpWhileStatement", this.GetType().FullName));
     }
     return(default(T));
 }
        protected override IPhpStatement[] VisitWhileStatement(WhileStatement src)
        {
            var c = TransValue(src.Condition);
            var s = TranslateStatementOne(src.Statement);
            var a = new PhpWhileStatement(c, s);

            return(MkArray(a));
        }
Esempio n. 3
0
        // Private Methods 

        protected override IPhpStatement VisitPhpWhileStatement(PhpWhileStatement node)
        {
            return(node.Simplify(this));
        }