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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 void registerJsCall(Node node, ResolverVisitor visitor) { | 272 void registerJsCall(Node node, ResolverVisitor visitor) { |
273 world.registerJsCall(node, visitor); | 273 world.registerJsCall(node, visitor); |
274 } | 274 } |
275 | 275 |
276 // TODO(johnniwinther): Remove the [ResolverVisitor] dependency. Its only | 276 // TODO(johnniwinther): Remove the [ResolverVisitor] dependency. Its only |
277 // needed to lookup types in the current scope. | 277 // needed to lookup types in the current scope. |
278 void registerJsEmbeddedGlobalCall(Node node, ResolverVisitor visitor) { | 278 void registerJsEmbeddedGlobalCall(Node node, ResolverVisitor visitor) { |
279 world.registerJsEmbeddedGlobalCall(node, visitor); | 279 world.registerJsEmbeddedGlobalCall(node, visitor); |
280 } | 280 } |
281 | 281 |
| 282 // TODO(johnniwinther): Remove the [ResolverVisitor] dependency. Its only |
| 283 // needed to lookup types in the current scope. |
| 284 void registerJsBuiltinCall(Node node, ResolverVisitor visitor) { |
| 285 world.registerJsBuiltinCall(node, visitor); |
| 286 } |
| 287 |
282 void registerGetOfStaticFunction(FunctionElement element) { | 288 void registerGetOfStaticFunction(FunctionElement element) { |
283 world.registerGetOfStaticFunction(element); | 289 world.registerGetOfStaticFunction(element); |
284 } | 290 } |
285 | 291 |
286 void registerDynamicGetter(Selector selector) { | 292 void registerDynamicGetter(Selector selector) { |
287 world.registerDynamicGetter(selector); | 293 world.registerDynamicGetter(selector); |
288 } | 294 } |
289 | 295 |
290 void registerDynamicSetter(Selector selector) { | 296 void registerDynamicSetter(Selector selector) { |
291 world.registerDynamicSetter(selector); | 297 world.registerDynamicSetter(selector); |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 } | 376 } |
371 | 377 |
372 void registerAsyncMarker(FunctionElement element) { | 378 void registerAsyncMarker(FunctionElement element) { |
373 backend.registerAsyncMarker(element, world, this); | 379 backend.registerAsyncMarker(element, world, this); |
374 } | 380 } |
375 | 381 |
376 void registerAsyncForIn(AsyncForIn node) { | 382 void registerAsyncForIn(AsyncForIn node) { |
377 backend.resolutionCallbacks.onAsyncForIn(node, this); | 383 backend.resolutionCallbacks.onAsyncForIn(node, this); |
378 } | 384 } |
379 } | 385 } |
OLD | NEW |