langtools/src/share/classes/com/sun/tools/javac/api/JavacTrees.java
changeset 10950 e87b50888909
parent 10631 d9914010b902
child 11055 ec1418effa77
equal deleted inserted replaced
10949:42f7cc0468dd 10950:e87b50888909
   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);