| 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 void registerIsCheck(DartType type) { | 220 void registerIsCheck(DartType type) { |
| 221 world.registerIsCheck(type, this); | 221 world.registerIsCheck(type, this); |
| 222 backend.resolutionCallbacks.onIsCheck(type, this); | 222 backend.resolutionCallbacks.onIsCheck(type, this); |
| 223 } | 223 } |
| 224 | 224 |
| 225 void registerAsCheck(DartType type) { | 225 void registerAsCheck(DartType type) { |
| 226 registerIsCheck(type); | 226 registerIsCheck(type); |
| 227 backend.resolutionCallbacks.onAsCheck(type, this); | 227 backend.resolutionCallbacks.onAsCheck(type, this); |
| 228 } | 228 } |
| 229 | 229 |
| 230 void registerClosure(Element element) { | 230 void registerClosure(LocalFunctionElement element) { |
| 231 world.registerClosure(element, this); | 231 world.registerClosure(element, this); |
| 232 } | 232 } |
| 233 | 233 |
| 234 void registerSuperUse(Node node) { | 234 void registerSuperUse(Node node) { |
| 235 mapping.superUses.add(node); | 235 mapping.superUses.add(node); |
| 236 } | 236 } |
| 237 | 237 |
| 238 void registerDynamicInvocation(Selector selector) { | 238 void registerDynamicInvocation(Selector selector) { |
| 239 world.registerDynamicInvocation(currentElement, selector); | 239 world.registerDynamicInvocation(currentElement, selector); |
| 240 } | 240 } |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 | 355 |
| 356 void registerAssert(Send node) { | 356 void registerAssert(Send node) { |
| 357 mapping.setAssert(node); | 357 mapping.setAssert(node); |
| 358 backend.resolutionCallbacks.onAssert(node, this); | 358 backend.resolutionCallbacks.onAssert(node, this); |
| 359 } | 359 } |
| 360 | 360 |
| 361 bool isAssert(Send node) { | 361 bool isAssert(Send node) { |
| 362 return mapping.isAssert(node); | 362 return mapping.isAssert(node); |
| 363 } | 363 } |
| 364 } | 364 } |
| OLD | NEW |