コード例 #1
0
        protected override IPhpValue VisitIncrementDecrementExpression(IncrementDecrementExpression src)
        {
            var o = TransValue(src.Operand);
            var r = new PhpIncrementDecrementExpression(o, src.Increment, src.Pre);

            return(SimplifyPhpExpression(r));
        }
コード例 #2
0
        protected override IPhpStatement[] VisitIncrementDecrementExpression(IncrementDecrementExpression src)
        {
            var o = TransValue(src.Operand);
            var a = new PhpIncrementDecrementExpression(o, src.Increment, src.Pre);

            return(MkArray(a));
        }
コード例 #3
0
ファイル: PhpBaseVisitor.cs プロジェクト: yekainew/cs2php
 protected virtual T VisitPhpIncrementDecrementExpression(PhpIncrementDecrementExpression node)
 {
     if (ThrowNotImplementedException)
     {
         throw new NotImplementedException(string.Format("Method {0} is not supported in class {1}", "VisitPhpIncrementDecrementExpression", this.GetType().FullName));
     }
     return(default(T));
 }
コード例 #4
0
 protected override IPhpValue VisitPhpIncrementDecrementExpression(PhpIncrementDecrementExpression node)
 {
     return(node.Simplify(this));
 }