OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 resolution; | 5 part of resolution; |
6 | 6 |
7 /// [ResolutionRegistry] collects all resolution information. It stores node | 7 /// [ResolutionRegistry] collects all resolution information. It stores node |
8 /// related information in a [TreeElements] mapping and registers calls with | 8 /// related information in a [TreeElements] mapping and registers calls with |
9 /// [Backend], [World] and [Enqueuer]. | 9 /// [Backend], [World] and [Enqueuer]. |
10 // TODO(johnniwinther): Split this into an interface and implementation class. | 10 // TODO(johnniwinther): Split this into an interface and implementation class. |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 } | 198 } |
199 | 199 |
200 void registerInstantiatedClass(ClassElement element) { | 200 void registerInstantiatedClass(ClassElement element) { |
201 world.registerInstantiatedClass(element, this); | 201 world.registerInstantiatedClass(element, this); |
202 } | 202 } |
203 | 203 |
204 void registerLazyField() { | 204 void registerLazyField() { |
205 backend.resolutionCallbacks.onLazyField(this); | 205 backend.resolutionCallbacks.onLazyField(this); |
206 } | 206 } |
207 | 207 |
208 void registerMetadataConstant(Constant constant, Element annotatedElement) { | 208 void registerMetadataConstant(MetadataAnnotation metadata, |
209 backend.registerMetadataConstant(constant, annotatedElement, this); | 209 Element annotatedElement) { |
| 210 backend.registerMetadataConstant(metadata, annotatedElement, this); |
210 } | 211 } |
211 | 212 |
212 void registerThrowRuntimeError() { | 213 void registerThrowRuntimeError() { |
213 backend.resolutionCallbacks.onThrowRuntimeError(this); | 214 backend.resolutionCallbacks.onThrowRuntimeError(this); |
214 } | 215 } |
215 | 216 |
216 void registerTypeVariableBoundCheck() { | 217 void registerTypeVariableBoundCheck() { |
217 backend.resolutionCallbacks.onTypeVariableBoundCheck(this); | 218 backend.resolutionCallbacks.onTypeVariableBoundCheck(this); |
218 } | 219 } |
219 | 220 |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 | 359 |
359 void registerAssert(Send node) { | 360 void registerAssert(Send node) { |
360 mapping.setAssert(node); | 361 mapping.setAssert(node); |
361 backend.resolutionCallbacks.onAssert(node, this); | 362 backend.resolutionCallbacks.onAssert(node, this); |
362 } | 363 } |
363 | 364 |
364 bool isAssert(Send node) { | 365 bool isAssert(Send node) { |
365 return mapping.isAssert(node); | 366 return mapping.isAssert(node); |
366 } | 367 } |
367 } | 368 } |
OLD | NEW |