private static boolean nodeHasCall ( Node node ) { return NodeUtil . has ( node , new Predicate < Node > ( ) { @ Override public boolean apply ( Node input ) { return input . isCall ( ) || input . isNew ( ) || input . isTaggedTemplateLit ( ) ; } } , NOT_FUNCTION_PREDICATE ) ; }
Returns true if a node has a CALL or a NEW descendant .