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

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

Issue 1383503002: Add Resolution and Parsing interfaces for computeType, ensureResolved and parseNode. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Add TODOs. Created 5 years, 2 months 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/backend_api.dart' show 7 import '../common/backend_api.dart' show
8 Backend; 8 Backend;
9 import '../common/registry.dart' show 9 import '../common/registry.dart' show
10 Registry; 10 Registry;
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 } 398 }
399 399
400 void registerImplicitSuperCall(FunctionElement superConstructor) { 400 void registerImplicitSuperCall(FunctionElement superConstructor) {
401 universe.registerImplicitSuperCall(this, superConstructor); 401 universe.registerImplicitSuperCall(this, superConstructor);
402 } 402 }
403 403
404 // TODO(johnniwinther): Remove this. 404 // TODO(johnniwinther): Remove this.
405 // Use [registerInstantiatedType] of `rawType` instead. 405 // Use [registerInstantiatedType] of `rawType` instead.
406 @deprecated 406 @deprecated
407 void registerInstantiatedClass(ClassElement element) { 407 void registerInstantiatedClass(ClassElement element) {
408 element.ensureResolved(compiler); 408 element.ensureResolved(compiler.resolution);
409 registerInstantiatedType(element.rawType); 409 registerInstantiatedType(element.rawType);
410 } 410 }
411 411
412 void registerLazyField() { 412 void registerLazyField() {
413 backend.resolutionCallbacks.onLazyField(this); 413 backend.resolutionCallbacks.onLazyField(this);
414 } 414 }
415 415
416 void registerMetadataConstant(MetadataAnnotation metadata, 416 void registerMetadataConstant(MetadataAnnotation metadata,
417 Element annotatedElement) { 417 Element annotatedElement) {
418 backend.registerMetadataConstant(metadata, annotatedElement, this); 418 backend.registerMetadataConstant(metadata, annotatedElement, this);
(...skipping 21 matching lines...) Expand all
440 mapping.addRequiredType(type); 440 mapping.addRequiredType(type);
441 } 441 }
442 442
443 void registerAsCheck(DartType type) { 443 void registerAsCheck(DartType type) {
444 registerIsCheck(type); 444 registerIsCheck(type);
445 backend.resolutionCallbacks.onAsCheck(type, this); 445 backend.resolutionCallbacks.onAsCheck(type, this);
446 mapping.addRequiredType(type); 446 mapping.addRequiredType(type);
447 } 447 }
448 448
449 void registerClosure(LocalFunctionElement element) { 449 void registerClosure(LocalFunctionElement element) {
450 if (element.computeType(compiler).containsTypeVariables) { 450 if (element.computeType(compiler.resolution).containsTypeVariables) {
451 backend.registerClosureWithFreeTypeVariables(element, world, this); 451 backend.registerClosureWithFreeTypeVariables(element, world, this);
452 } 452 }
453 world.registerClosure(element); 453 world.registerClosure(element);
454 } 454 }
455 455
456 void registerSuperUse(Node node) { 456 void registerSuperUse(Node node) {
457 mapping.addSuperUse(node); 457 mapping.addSuperUse(node);
458 } 458 }
459 459
460 void registerDynamicInvocation(UniverseSelector selector) { 460 void registerDynamicInvocation(UniverseSelector selector) {
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 } 612 }
613 613
614 void registerIncDecOperation() { 614 void registerIncDecOperation() {
615 backend.resolutionCallbacks.onIncDecOperation(this); 615 backend.resolutionCallbacks.onIncDecOperation(this);
616 } 616 }
617 617
618 void registerTryStatement() { 618 void registerTryStatement() {
619 mapping.containsTryStatement = true; 619 mapping.containsTryStatement = true;
620 } 620 }
621 } 621 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/members.dart ('k') | pkg/compiler/lib/src/resolution/resolution.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698