public static bool Analyze(JsExpression expression)
        {
            var v = new DoesJsExpressionHaveSideEffects();

            expression.Accept(v, null);
            return(v._result);
        }
Example #2
0
        public static bool Analyze(JsExpression expression)
        {
            var v = new IsJsExpressionComplexEnoughToGetATemporaryVariable();

            expression.Accept(v, null);
            return(v._result);
        }
Example #3
0
 public object VisitExpression(JsExpression expression, bool parenthesized)
 {
     if (parenthesized)
     {
         _cb.Append("(");
     }
     expression.Accept(this, parenthesized);
     if (parenthesized)
     {
         _cb.Append(")");
     }
     return(null);
 }
 public virtual JsExpression VisitExpression(JsExpression expression, TData data)
 {
     return(expression.Accept(this, data));
 }