| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 part of dart2js; | 5 part of dart2js; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * If true, print a warning for each method that was resolved, but not | 8 * If true, print a warning for each method that was resolved, but not |
| 9 * compiled. | 9 * compiled. |
| 10 */ | 10 */ |
| (...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 void registerAsyncMarker(FunctionElement element, | 523 void registerAsyncMarker(FunctionElement element, |
| 524 Enqueuer enqueuer, | 524 Enqueuer enqueuer, |
| 525 Registry registry) {} | 525 Registry registry) {} |
| 526 } | 526 } |
| 527 | 527 |
| 528 /// Backend callbacks function specific to the resolution phase. | 528 /// Backend callbacks function specific to the resolution phase. |
| 529 class ResolutionCallbacks { | 529 class ResolutionCallbacks { |
| 530 /// Register that [node] is a call to `assert`. | 530 /// Register that [node] is a call to `assert`. |
| 531 void onAssert(Send node, Registry registry) {} | 531 void onAssert(Send node, Registry registry) {} |
| 532 | 532 |
| 533 /// Register that an 'await for' has been seen. | |
| 534 void onAsyncForIn(AsyncForIn node, Registry registry) {} | |
| 535 | |
| 536 /// Called during resolution to notify to the backend that the | 533 /// Called during resolution to notify to the backend that the |
| 537 /// program uses string interpolation. | 534 /// program uses string interpolation. |
| 538 void onStringInterpolation(Registry registry) {} | 535 void onStringInterpolation(Registry registry) {} |
| 539 | 536 |
| 540 /// Called during resolution to notify to the backend that the | 537 /// Called during resolution to notify to the backend that the |
| 541 /// program has a catch statement. | 538 /// program has a catch statement. |
| 542 void onCatchStatement(Registry registry) {} | 539 void onCatchStatement(Registry registry) {} |
| 543 | 540 |
| 544 /// Called during resolution to notify to the backend that the | 541 /// Called during resolution to notify to the backend that the |
| 545 /// program explicitly throws an exception. | 542 /// program explicitly throws an exception. |
| (...skipping 1868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2414 return futureClass.computeType(compiler).createInstantiation([elementType]); | 2411 return futureClass.computeType(compiler).createInstantiation([elementType]); |
| 2415 } | 2412 } |
| 2416 | 2413 |
| 2417 @override | 2414 @override |
| 2418 InterfaceType streamType([DartType elementType = const DynamicType()]) { | 2415 InterfaceType streamType([DartType elementType = const DynamicType()]) { |
| 2419 return streamClass.computeType(compiler).createInstantiation([elementType]); | 2416 return streamClass.computeType(compiler).createInstantiation([elementType]); |
| 2420 } | 2417 } |
| 2421 } | 2418 } |
| 2422 | 2419 |
| 2423 typedef void InternalErrorFunction(Spannable location, String message); | 2420 typedef void InternalErrorFunction(Spannable location, String message); |
| OLD | NEW |