| 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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 | 409 |
| 410 void registerMetadataConstant(MetadataAnnotation metadata, | 410 void registerMetadataConstant(MetadataAnnotation metadata, |
| 411 Element annotatedElement) { | 411 Element annotatedElement) { |
| 412 backend.registerMetadataConstant(metadata, annotatedElement, this); | 412 backend.registerMetadataConstant(metadata, annotatedElement, this); |
| 413 } | 413 } |
| 414 | 414 |
| 415 void registerThrowRuntimeError() { | 415 void registerThrowRuntimeError() { |
| 416 backend.resolutionCallbacks.onThrowRuntimeError(this); | 416 backend.resolutionCallbacks.onThrowRuntimeError(this); |
| 417 } | 417 } |
| 418 | 418 |
| 419 void registerCompileTimeError(ErroneousElement error) { |
| 420 backend.resolutionCallbacks.onCompileTimeError(this, error); |
| 421 } |
| 422 |
| 419 void registerTypeVariableBoundCheck() { | 423 void registerTypeVariableBoundCheck() { |
| 420 backend.resolutionCallbacks.onTypeVariableBoundCheck(this); | 424 backend.resolutionCallbacks.onTypeVariableBoundCheck(this); |
| 421 } | 425 } |
| 422 | 426 |
| 423 void registerThrowNoSuchMethod() { | 427 void registerThrowNoSuchMethod() { |
| 424 backend.resolutionCallbacks.onThrowNoSuchMethod(this); | 428 backend.resolutionCallbacks.onThrowNoSuchMethod(this); |
| 425 } | 429 } |
| 426 | 430 |
| 427 void registerIsCheck(DartType type) { | 431 void registerIsCheck(DartType type) { |
| 428 worldImpact.registerCheckedType(type); | 432 worldImpact.registerCheckedType(type); |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 } | 604 } |
| 601 | 605 |
| 602 void registerAsyncMarker(FunctionElement element) { | 606 void registerAsyncMarker(FunctionElement element) { |
| 603 backend.registerAsyncMarker(element, world, this); | 607 backend.registerAsyncMarker(element, world, this); |
| 604 } | 608 } |
| 605 | 609 |
| 606 void registerAsyncForIn(AsyncForIn node) { | 610 void registerAsyncForIn(AsyncForIn node) { |
| 607 backend.resolutionCallbacks.onAsyncForIn(node, this); | 611 backend.resolutionCallbacks.onAsyncForIn(node, this); |
| 608 } | 612 } |
| 609 } | 613 } |
| OLD | NEW |