| 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 library world_builder; | 5 library world_builder; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import '../common.dart'; | 9 import '../common.dart'; |
| 10 import '../common/names.dart' show Identifiers; | 10 import '../common/names.dart' show Identifiers; |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 | 149 |
| 150 /// The [WorldBuilder] is an auxiliary class used in the process of computing | 150 /// The [WorldBuilder] is an auxiliary class used in the process of computing |
| 151 /// the [ClosedWorld]. | 151 /// the [ClosedWorld]. |
| 152 // TODO(johnniwinther): Move common implementation to a [WorldBuilderBase] when | 152 // TODO(johnniwinther): Move common implementation to a [WorldBuilderBase] when |
| 153 // universes and worlds have been unified. | 153 // universes and worlds have been unified. |
| 154 abstract class WorldBuilder { | 154 abstract class WorldBuilder { |
| 155 /// All directly instantiated classes, that is, classes with a generative | 155 /// All directly instantiated classes, that is, classes with a generative |
| 156 /// constructor that has been called directly and not only through a | 156 /// constructor that has been called directly and not only through a |
| 157 /// super-call. | 157 /// super-call. |
| 158 // TODO(johnniwinther): Improve semantic precision. | 158 // TODO(johnniwinther): Improve semantic precision. |
| 159 Iterable<ClassElement> get directlyInstantiatedClasses; | 159 Iterable<ClassEntity> get directlyInstantiatedClasses; |
| 160 | 160 |
| 161 /// All types that are checked either through is, as or checked mode checks. | 161 /// All types that are checked either through is, as or checked mode checks. |
| 162 Iterable<ResolutionDartType> get isChecks; | 162 Iterable<DartType> get isChecks; |
| 163 |
| 164 /// All directly instantiated types, that is, the types of the directly |
| 163 | 165 |
| 164 /// Registers that [type] is checked in this world builder. The unaliased type | 166 /// Registers that [type] is checked in this world builder. The unaliased type |
| 165 /// is returned. | 167 /// is returned. |
| 166 ResolutionDartType registerIsCheck(ResolutionDartType type); | 168 void registerIsCheck(DartType type); |
| 167 | 169 |
| 168 /// All directly instantiated types, that is, the types of the directly | |
| 169 /// instantiated classes. | 170 /// instantiated classes. |
| 170 // TODO(johnniwinther): Improve semantic precision. | 171 // TODO(johnniwinther): Improve semantic precision. |
| 171 Iterable<ResolutionDartType> get instantiatedTypes; | 172 Iterable<InterfaceType> get instantiatedTypes; |
| 172 } | 173 } |
| OLD | NEW |