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 library dart2js.resolution.registry; | 5 library dart2js.resolution.registry; |
6 | 6 |
7 import '../common.dart'; | 7 import '../common.dart'; |
8 import '../common/backend_api.dart' show | 8 import '../common/backend_api.dart' show |
9 Backend, | 9 Backend, |
10 ForeignResolver; | 10 ForeignResolver; |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 } | 175 } |
176 | 176 |
177 ////////////////////////////////////////////////////////////////////////////// | 177 ////////////////////////////////////////////////////////////////////////////// |
178 // Node-to-Selector mapping functionality. | 178 // Node-to-Selector mapping functionality. |
179 ////////////////////////////////////////////////////////////////////////////// | 179 ////////////////////////////////////////////////////////////////////////////// |
180 | 180 |
181 void setSelector(Node node, Selector selector) { | 181 void setSelector(Node node, Selector selector) { |
182 mapping.setSelector(node, selector); | 182 mapping.setSelector(node, selector); |
183 } | 183 } |
184 | 184 |
185 Selector getSelector(Node node) => mapping.getSelector(node); | |
186 | |
187 void setGetterSelectorInComplexSendSet(SendSet node, Selector selector) { | 185 void setGetterSelectorInComplexSendSet(SendSet node, Selector selector) { |
188 mapping.setGetterSelectorInComplexSendSet(node, selector); | 186 mapping.setGetterSelectorInComplexSendSet(node, selector); |
189 } | 187 } |
190 | 188 |
191 void setOperatorSelectorInComplexSendSet(SendSet node, Selector selector) { | 189 void setOperatorSelectorInComplexSendSet(SendSet node, Selector selector) { |
192 mapping.setOperatorSelectorInComplexSendSet(node, selector); | 190 mapping.setOperatorSelectorInComplexSendSet(node, selector); |
193 } | 191 } |
194 | 192 |
195 void setIteratorSelector(ForIn node, Selector selector) { | |
196 mapping.setIteratorSelector(node, selector); | |
197 } | |
198 | |
199 void setMoveNextSelector(ForIn node, Selector selector) { | |
200 mapping.setMoveNextSelector(node, selector); | |
201 } | |
202 | |
203 void setCurrentSelector(ForIn node, Selector selector) { | |
204 mapping.setCurrentSelector(node, selector); | |
205 } | |
206 | |
207 ////////////////////////////////////////////////////////////////////////////// | 193 ////////////////////////////////////////////////////////////////////////////// |
208 // Node-to-Type mapping functionality. | 194 // Node-to-Type mapping functionality. |
209 ////////////////////////////////////////////////////////////////////////////// | 195 ////////////////////////////////////////////////////////////////////////////// |
210 | 196 |
211 DartType useType(Node annotation, DartType type) { | 197 DartType useType(Node annotation, DartType type) { |
212 if (type != null) { | 198 if (type != null) { |
213 mapping.setType(annotation, type); | 199 mapping.setType(annotation, type); |
214 } | 200 } |
215 return type; | 201 return type; |
216 } | 202 } |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 @override | 495 @override |
510 void registerInstantiatedType(InterfaceType type) { | 496 void registerInstantiatedType(InterfaceType type) { |
511 registry.registerInstantiatedType(type); | 497 registry.registerInstantiatedType(type); |
512 } | 498 } |
513 | 499 |
514 @override | 500 @override |
515 DartType resolveTypeFromString(Node node, String typeName) { | 501 DartType resolveTypeFromString(Node node, String typeName) { |
516 return visitor.resolveTypeFromString(node, typeName); | 502 return visitor.resolveTypeFromString(node, typeName); |
517 } | 503 } |
518 } | 504 } |
OLD | NEW |