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, |