public static bool Analyze(JsExpression expression) { var v = new DoesJsExpressionHaveSideEffects(); expression.Accept(v, null); return(v._result); }
public static bool Analyze(JsExpression expression) { var v = new IsJsExpressionComplexEnoughToGetATemporaryVariable(); expression.Accept(v, null); return(v._result); }
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)); }