示例#1
0
        public override string GetPhpCode(PhpEmitStyle style)
        {
            if (expression == (object)null)
            {
                throw new Exception("Unable to get code from empty expression");
            }
            var ex = PhpParenthesizedExpression.Strip(expression);
            var a  = expression.GetPhpCode(style);

            if (byRef)
            {
                a = "&" + a;
            }
            return(a);
        }
示例#2
0
 protected IPhpValue StripBracketsAndSimplify(IPhpValue value, IPhpExpressionSimplifier s)
 {
     value = PhpParenthesizedExpression.Strip(value);
     value = s.Simplify(value);
     return(value);
 }