private static void checkWith ( NodeTraversal t , Node n ) { JSDocInfo info = n . getJSDocInfo ( ) ; boolean allowWith = info != null && info . getSuppressions ( ) . contains ( "with" ) ; if ( ! allowWith ) { t . report ( n , USE_OF_WITH ) ; } }
Reports a warning for with statements .