コード例 #1
0
 private static boolean reportIfNonObject(NodeTraversal t, Node n, DiagnosticType diagnosticType) {
   if (n.isAdd() || !NodeUtil.mayBeObect(n)) {
     t.report(n.getParent(), diagnosticType);
     return true;
   }
   return false;
 }