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 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 } | 549 } |
550 | 550 |
551 bool isAssert(Send node) { | 551 bool isAssert(Send node) { |
552 return mapping.isAssert(node); | 552 return mapping.isAssert(node); |
553 } | 553 } |
554 | 554 |
555 void registerSendStructure(Send node, SendStructure sendStructure) { | 555 void registerSendStructure(Send node, SendStructure sendStructure) { |
556 mapping.setSendStructure(node, sendStructure); | 556 mapping.setSendStructure(node, sendStructure); |
557 } | 557 } |
558 | 558 |
| 559 // TODO(johnniwinther): Remove this when [SendStructure]s are part of the |
| 560 // [ResolutionResult]. |
| 561 SendStructure getSendStructure(Send node) { |
| 562 return mapping.getSendStructure(node); |
| 563 } |
| 564 |
559 void registerAsyncMarker(FunctionElement element) { | 565 void registerAsyncMarker(FunctionElement element) { |
560 backend.registerAsyncMarker(element, world, this); | 566 backend.registerAsyncMarker(element, world, this); |
561 } | 567 } |
562 | 568 |
563 void registerAsyncForIn(AsyncForIn node) { | 569 void registerAsyncForIn(AsyncForIn node) { |
564 backend.resolutionCallbacks.onAsyncForIn(node, this); | 570 backend.resolutionCallbacks.onAsyncForIn(node, this); |
565 } | 571 } |
566 } | 572 } |
OLD | NEW |