| 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 |
| 9 import '../common.dart'; | |
| 10 import '../elements/elements.dart' show ClassElement; | 9 import '../elements/elements.dart' show ClassElement; |
| 11 import '../util/enumset.dart' show EnumSet; | 10 import '../util/enumset.dart' show EnumSet; |
| 12 import '../util/util.dart' show Link; | 11 import '../util/util.dart' show Link; |
| 13 | 12 |
| 14 /// Enum for the different kinds of instantiation of a class. | 13 /// Enum for the different kinds of instantiation of a class. |
| 15 enum Instantiation { | 14 enum Instantiation { |
| 16 UNINSTANTIATED, | 15 UNINSTANTIATED, |
| 17 DIRECTLY_INSTANTIATED, | 16 DIRECTLY_INSTANTIATED, |
| 18 INDIRECTLY_INSTANTIATED, | 17 INDIRECTLY_INSTANTIATED, |
| 19 ABSTRACTLY_INSTANTIATED, | 18 ABSTRACTLY_INSTANTIATED, |
| (...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 900 STOP, | 899 STOP, |
| 901 | 900 |
| 902 /// Iteration skips the subclasses of the current class. | 901 /// Iteration skips the subclasses of the current class. |
| 903 SKIP_SUBCLASSES, | 902 SKIP_SUBCLASSES, |
| 904 } | 903 } |
| 905 | 904 |
| 906 /// Visiting function used for the `forEachX` functions of [ClassHierarchyNode] | 905 /// Visiting function used for the `forEachX` functions of [ClassHierarchyNode] |
| 907 /// and [ClassSet]. The return value controls the continued iteration. If `null` | 906 /// and [ClassSet]. The return value controls the continued iteration. If `null` |
| 908 /// is returned, iteration continues to the end. | 907 /// is returned, iteration continues to the end. |
| 909 typedef IterationStep ForEachFunction(ClassElement cls); | 908 typedef IterationStep ForEachFunction(ClassElement cls); |
| OLD | NEW |