Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Side by Side Diff: pkg/compiler/lib/src/resolution/registry.dart

Issue 1433443002: Remove for-in selectors from TreeElements. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Remove unneeded code. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/members.dart ('k') | pkg/compiler/lib/src/resolution/tree_elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698