OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 part of dart2js; | |
6 | |
7 class World { | 5 class World { |
8 final Compiler compiler; | 6 final Compiler compiler; |
9 final Map<ClassElement, Set<ClassElement>> subtypes; | 7 final Map<ClassElement, Set<ClassElement>> subtypes; |
10 final Set<ClassElement> classesNeedingRti; | 8 final Set<ClassElement> classesNeedingRti; |
11 final Map<ClassElement, Set<ClassElement>> rtiDependencies; | 9 final Map<ClassElement, Set<ClassElement>> rtiDependencies; |
12 final FunctionSet userDefinedGetters; | 10 final FunctionSet userDefinedGetters; |
13 final FunctionSet userDefinedSetters; | 11 final FunctionSet userDefinedSetters; |
14 | 12 |
15 World(Compiler compiler) | 13 World(Compiler compiler) |
16 : subtypes = new Map<ClassElement, Set<ClassElement>>(), | 14 : subtypes = new Map<ClassElement, Set<ClassElement>>(), |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 final SourceString name; | 184 final SourceString name; |
187 | 185 |
188 MemberSet(SourceString this.name) : elements = new Set<Element>(); | 186 MemberSet(SourceString this.name) : elements = new Set<Element>(); |
189 | 187 |
190 void add(Element element) { | 188 void add(Element element) { |
191 elements.add(element); | 189 elements.add(element); |
192 } | 190 } |
193 | 191 |
194 bool isEmpty() => elements.isEmpty(); | 192 bool isEmpty() => elements.isEmpty(); |
195 } | 193 } |
OLD | NEW |