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

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

Issue 1437463005: Compute NewStructure in resolution. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Long line. 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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 } 380 }
381 381
382 void registerInstantiation(InterfaceType type) { 382 void registerInstantiation(InterfaceType type) {
383 worldImpact.registerTypeUse(new TypeUse.instantiation(type)); 383 worldImpact.registerTypeUse(new TypeUse.instantiation(type));
384 } 384 }
385 385
386 void registerSendStructure(Send node, SendStructure sendStructure) { 386 void registerSendStructure(Send node, SendStructure sendStructure) {
387 mapping.setSendStructure(node, sendStructure); 387 mapping.setSendStructure(node, sendStructure);
388 } 388 }
389 389
390 void registerNewStructure(NewExpression node, NewStructure newStructure) {
391 mapping.setNewStructure(node, newStructure);
392 }
393
390 // TODO(johnniwinther): Remove this when [SendStructure]s are part of the 394 // TODO(johnniwinther): Remove this when [SendStructure]s are part of the
391 // [ResolutionResult]. 395 // [ResolutionResult].
392 SendStructure getSendStructure(Send node) { 396 SendStructure getSendStructure(Send node) {
393 return mapping.getSendStructure(node); 397 return mapping.getSendStructure(node);
394 } 398 }
395 399
396 void registerTryStatement() { 400 void registerTryStatement() {
397 mapping.containsTryStatement = true; 401 mapping.containsTryStatement = true;
398 } 402 }
399 } 403 }
(...skipping 12 matching lines...) Expand all
412 @override 416 @override
413 void registerInstantiatedType(InterfaceType type) { 417 void registerInstantiatedType(InterfaceType type) {
414 registry.registerInstantiation(type); 418 registry.registerInstantiation(type);
415 } 419 }
416 420
417 @override 421 @override
418 DartType resolveTypeFromString(Node node, String typeName) { 422 DartType resolveTypeFromString(Node node, String typeName) {
419 return visitor.resolveTypeFromString(node, typeName); 423 return visitor.resolveTypeFromString(node, typeName);
420 } 424 }
421 } 425 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698