equal
deleted
inserted
replaced
205 JCTree tree = (JCTree) path.getLeaf(); |
205 JCTree tree = (JCTree) path.getLeaf(); |
206 Symbol sym = TreeInfo.symbolFor(tree); |
206 Symbol sym = TreeInfo.symbolFor(tree); |
207 if (sym == null && TreeInfo.isDeclaration(tree)) { |
207 if (sym == null && TreeInfo.isDeclaration(tree)) { |
208 for (TreePath p = path; p != null; p = p.getParentPath()) { |
208 for (TreePath p = path; p != null; p = p.getParentPath()) { |
209 JCTree t = (JCTree) p.getLeaf(); |
209 JCTree t = (JCTree) p.getLeaf(); |
210 if (t.getTag() == JCTree.CLASSDEF) { |
210 if (t.hasTag(JCTree.Tag.CLASSDEF)) { |
211 JCClassDecl ct = (JCClassDecl) t; |
211 JCClassDecl ct = (JCClassDecl) t; |
212 if (ct.sym != null) { |
212 if (ct.sym != null) { |
213 if ((ct.sym.flags_field & Flags.UNATTRIBUTED) != 0) { |
213 if ((ct.sym.flags_field & Flags.UNATTRIBUTED) != 0) { |
214 attr.attribClass(ct.pos(), ct.sym); |
214 attr.attribClass(ct.pos(), ct.sym); |
215 sym = TreeInfo.symbolFor(tree); |
215 sym = TreeInfo.symbolFor(tree); |