| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 library dart2js.world.class_set; | 5 library dart2js.world.class_set; |
| 6 | 6 |
| 7 import 'dart:collection' show IterableBase; | 7 import 'dart:collection' show IterableBase; |
| 8 |
| 8 import '../elements/elements.dart' show ClassElement; | 9 import '../elements/elements.dart' show ClassElement; |
| 9 import '../util/enumset.dart' show EnumSet; | 10 import '../util/enumset.dart' show EnumSet; |
| 10 import '../util/util.dart' show Link; | 11 import '../util/util.dart' show Link; |
| 11 | 12 |
| 12 /// Enum for the different kinds of instantiation of a class. | 13 /// Enum for the different kinds of instantiation of a class. |
| 13 enum Instantiation { | 14 enum Instantiation { |
| 14 UNINSTANTIATED, | 15 UNINSTANTIATED, |
| 15 DIRECTLY_INSTANTIATED, | 16 DIRECTLY_INSTANTIATED, |
| 16 INDIRECTLY_INSTANTIATED, | 17 INDIRECTLY_INSTANTIATED, |
| 17 } | 18 } |
| (...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 847 STOP, | 848 STOP, |
| 848 | 849 |
| 849 /// Iteration skips the subclasses of the current class. | 850 /// Iteration skips the subclasses of the current class. |
| 850 SKIP_SUBCLASSES, | 851 SKIP_SUBCLASSES, |
| 851 } | 852 } |
| 852 | 853 |
| 853 /// Visiting function used for the `forEachX` functions of [ClassHierarchyNode] | 854 /// Visiting function used for the `forEachX` functions of [ClassHierarchyNode] |
| 854 /// and [ClassSet]. The return value controls the continued iteration. If `null` | 855 /// and [ClassSet]. The return value controls the continued iteration. If `null` |
| 855 /// is returned, iteration continues to the end. | 856 /// is returned, iteration continues to the end. |
| 856 typedef IterationStep ForEachFunction(ClassElement cls); | 857 typedef IterationStep ForEachFunction(ClassElement cls); |
| OLD | NEW |