equal
deleted
inserted
replaced
226 * This is usually the environment's scope, except for class environments, |
226 * This is usually the environment's scope, except for class environments, |
227 * where the local scope is for type variables, and the this and super symbol |
227 * where the local scope is for type variables, and the this and super symbol |
228 * only, and members go into the class member scope. |
228 * only, and members go into the class member scope. |
229 */ |
229 */ |
230 Scope enterScope(Env<AttrContext> env) { |
230 Scope enterScope(Env<AttrContext> env) { |
231 return (env.tree.getTag() == JCTree.CLASSDEF) |
231 return (env.tree.hasTag(JCTree.Tag.CLASSDEF)) |
232 ? ((JCClassDecl) env.tree).sym.members_field |
232 ? ((JCClassDecl) env.tree).sym.members_field |
233 : env.info.scope; |
233 : env.info.scope; |
234 } |
234 } |
235 |
235 |
236 /* ************************************************************************ |
236 /* ************************************************************************ |