@Override public void scan(JCTree tree) { noBug[0] |= (tree == val); super.scan(tree); } }.scan(method);
public void scan(JCTree t) { if (t != null) { stack.push(t); try { super.scan(t); } finally { stack.pop(); } } }
@Override public void scan(JCTree t) { if (t instanceof JCImport) { return; } if (t != null && t.type != null && t.type.tsym instanceof ClassSymbol) { if (!(t instanceof JCTypeApply)) { checkType(t.type.tsym); } } super.scan(t); }
public void scan(JCTree tree) { if (tree == statement) { throw new RuntimeException(); } boolean contextChange = false; if (tree instanceof JCBlock || tree instanceof JCEnhancedForLoop || tree instanceof JCLambda || tree instanceof JCForLoop || tree instanceof JCDoWhileLoop) { locals.push(new ArrayList<>()); contextChange = true; } if (tree instanceof JCVariableDecl) { locals.peek().add(((JCVariableDecl) tree).name.toString()); } super.scan(tree); if (contextChange) { locals.pop(); } }
super.scan(tree);
@Override public void scan(JCTree tree) { if (foundTypeAnno || tree == null) return; super.scan(tree); }
@Override public void scan(JCTree tree) { if (tree == null) return; if (tree instanceof JCExpression) { initTypeIfNeeded(tree); } super.scan(tree); }
public void scan(JCTree node) { if (node == null) return; Symbol sym = TreeInfo.symbolFor(node); if (sym != null) path = path.prepend(node); super.scan(node); if (sym != null) path = path.tail; }
public void scan(JCTree node) { if (node == null) return; Symbol sym = TreeInfo.symbolFor(node); if (sym != null) path = path.prepend(node); super.scan(node); if (sym != null) path = path.tail; }
@Override public void scan(JCTree tree) { if (tree != null && tree.type != null && tree.type.constValue() != null) { checkStringConstant(tree.pos(), tree.type.constValue()); } super.scan(tree); }