| 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/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 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 } | 448 } |
| 449 | 449 |
| 450 void registerDynamicInvocation(UniverseSelector selector) { | 450 void registerDynamicInvocation(UniverseSelector selector) { |
| 451 worldImpact.registerDynamicInvocation(selector); | 451 worldImpact.registerDynamicInvocation(selector); |
| 452 } | 452 } |
| 453 | 453 |
| 454 void registerSuperNoSuchMethod() { | 454 void registerSuperNoSuchMethod() { |
| 455 backend.resolutionCallbacks.onSuperNoSuchMethod(this); | 455 backend.resolutionCallbacks.onSuperNoSuchMethod(this); |
| 456 } | 456 } |
| 457 | 457 |
| 458 void registerClassUsingVariableExpression(ClassElement element) { | 458 void registerTypeVariableExpression(TypeVariableElement element) { |
| 459 backend.registerClassUsingVariableExpression(element); | 459 backend.resolutionCallbacks.onTypeVariableExpression(this, element); |
| 460 } | |
| 461 | |
| 462 void registerTypeVariableExpression() { | |
| 463 backend.resolutionCallbacks.onTypeVariableExpression(this); | |
| 464 } | 460 } |
| 465 | 461 |
| 466 void registerTypeLiteral(Send node, DartType type) { | 462 void registerTypeLiteral(Send node, DartType type) { |
| 467 mapping.setType(node, type); | 463 mapping.setType(node, type); |
| 468 backend.resolutionCallbacks.onTypeLiteral(type, this); | 464 backend.resolutionCallbacks.onTypeLiteral(type, this); |
| 469 world.registerInstantiatedType(compiler.coreTypes.typeType, this); | 465 world.registerInstantiatedType(compiler.coreTypes.typeType, this); |
| 470 } | 466 } |
| 471 | 467 |
| 472 void registerMapLiteral(Node node, DartType type, bool isConstant) { | 468 void registerMapLiteral(Node node, DartType type, bool isConstant) { |
| 473 setType(node, type); | 469 setType(node, type); |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 } | 607 } |
| 612 | 608 |
| 613 void registerIncDecOperation() { | 609 void registerIncDecOperation() { |
| 614 backend.resolutionCallbacks.onIncDecOperation(this); | 610 backend.resolutionCallbacks.onIncDecOperation(this); |
| 615 } | 611 } |
| 616 | 612 |
| 617 void registerTryStatement() { | 613 void registerTryStatement() { |
| 618 mapping.containsTryStatement = true; | 614 mapping.containsTryStatement = true; |
| 619 } | 615 } |
| 620 } | 616 } |
| OLD | NEW |