89 protected Lower(Context context) { |
88 protected Lower(Context context) { |
90 context.put(lowerKey, this); |
89 context.put(lowerKey, this); |
91 names = Names.instance(context); |
90 names = Names.instance(context); |
92 log = Log.instance(context); |
91 log = Log.instance(context); |
93 syms = Symtab.instance(context); |
92 syms = Symtab.instance(context); |
94 scopeCounter = Scope.ScopeCounter.instance(context); |
|
95 rs = Resolve.instance(context); |
93 rs = Resolve.instance(context); |
96 chk = Check.instance(context); |
94 chk = Check.instance(context); |
97 attr = Attr.instance(context); |
95 attr = Attr.instance(context); |
98 make = TreeMaker.instance(context); |
96 make = TreeMaker.instance(context); |
99 writer = ClassWriter.instance(context); |
97 writer = ClassWriter.instance(context); |
569 // Create class symbol. |
567 // Create class symbol. |
570 ClassSymbol c = reader.defineClass(names.empty, owner); |
568 ClassSymbol c = reader.defineClass(names.empty, owner); |
571 c.flatname = chk.localClassName(c); |
569 c.flatname = chk.localClassName(c); |
572 c.sourcefile = owner.sourcefile; |
570 c.sourcefile = owner.sourcefile; |
573 c.completer = null; |
571 c.completer = null; |
574 c.members_field = new Scope.ClassScope(c, scopeCounter); |
572 c.members_field = new Scope(c); |
575 c.flags_field = flags; |
573 c.flags_field = flags; |
576 ClassType ctype = (ClassType) c.type; |
574 ClassType ctype = (ClassType) c.type; |
577 ctype.supertype_field = syms.objectType; |
575 ctype.supertype_field = syms.objectType; |
578 ctype.interfaces_field = List.nil(); |
576 ctype.interfaces_field = List.nil(); |
579 |
577 |