langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java
changeset 43138 680d378b9d64
parent 42828 cce89649f958
child 43582 a6c58d4cb05b
equal deleted inserted replaced
43137:9a96f02a6293 43138:680d378b9d64
   351         private TreeVisitor<Symbol,Env<AttrContext>> identAttributer = new IdentAttributer();
   351         private TreeVisitor<Symbol,Env<AttrContext>> identAttributer = new IdentAttributer();
   352         private class IdentAttributer extends SimpleTreeVisitor<Symbol,Env<AttrContext>> {
   352         private class IdentAttributer extends SimpleTreeVisitor<Symbol,Env<AttrContext>> {
   353             @Override @DefinedBy(Api.COMPILER_TREE)
   353             @Override @DefinedBy(Api.COMPILER_TREE)
   354             public Symbol visitMemberSelect(MemberSelectTree node, Env<AttrContext> env) {
   354             public Symbol visitMemberSelect(MemberSelectTree node, Env<AttrContext> env) {
   355                 Symbol site = visit(node.getExpression(), env);
   355                 Symbol site = visit(node.getExpression(), env);
   356                 if (site.kind == ERR || site.kind == ABSENT_TYP)
   356                 if (site.kind == ERR || site.kind == ABSENT_TYP || site.kind == HIDDEN)
   357                     return site;
   357                     return site;
   358                 Name name = (Name)node.getIdentifier();
   358                 Name name = (Name)node.getIdentifier();
   359                 if (site.kind == PCK) {
   359                 if (site.kind == PCK) {
   360                     env.toplevel.packge = (PackageSymbol)site;
   360                     env.toplevel.packge = (PackageSymbol)site;
   361                     return rs.findIdentInPackage(env, (TypeSymbol)site, name,
   361                     return rs.findIdentInPackage(env, (TypeSymbol)site, name,