예제 #1
0
        public static bool NeedsParens(JsAstNode expression, bool outerHasNoArguments)
        {
            var visitor = new JsNewParensVisitor(outerHasNoArguments);

            expression.Accept(visitor);
            return(visitor.m_needsParens);
        }
 public static bool NeedsParens(JsAstNode expression, bool outerHasNoArguments)
 {
     var visitor = new JsNewParensVisitor(outerHasNoArguments);
     expression.Accept(visitor);
     return visitor.m_needsParens;
 }