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 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 /// program uses a type literal. | 557 /// program uses a type literal. |
558 void onTypeLiteral(DartType type, Registry registry) {} | 558 void onTypeLiteral(DartType type, Registry registry) {} |
559 | 559 |
560 /// Called during resolution to notify to the backend that the | 560 /// Called during resolution to notify to the backend that the |
561 /// program has a catch statement with a stack trace. | 561 /// program has a catch statement with a stack trace. |
562 void onStackTraceInCatch(Registry registry) {} | 562 void onStackTraceInCatch(Registry registry) {} |
563 | 563 |
564 /// Register an is check to the backend. | 564 /// Register an is check to the backend. |
565 void onIsCheck(DartType type, Registry registry) {} | 565 void onIsCheck(DartType type, Registry registry) {} |
566 | 566 |
| 567 /// Called during resolution to notify to the backend that the |
| 568 /// program has a for-in loop. |
| 569 void onSyncForIn(Registry registry) {} |
| 570 |
567 /// Register an as check to the backend. | 571 /// Register an as check to the backend. |
568 void onAsCheck(DartType type, Registry registry) {} | 572 void onAsCheck(DartType type, Registry registry) {} |
569 | 573 |
570 /// Registers that a type variable bounds check might occur at runtime. | 574 /// Registers that a type variable bounds check might occur at runtime. |
571 void onTypeVariableBoundCheck(Registry registry) {} | 575 void onTypeVariableBoundCheck(Registry registry) {} |
572 | 576 |
573 /// Register that the application may throw a [NoSuchMethodError]. | 577 /// Register that the application may throw a [NoSuchMethodError]. |
574 void onThrowNoSuchMethod(Registry registry) {} | 578 void onThrowNoSuchMethod(Registry registry) {} |
575 | 579 |
576 /// Register that the application may throw a [RuntimeError]. | 580 /// Register that the application may throw a [RuntimeError]. |
(...skipping 1844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2421 return futureClass.computeType(compiler).createInstantiation([elementType]); | 2425 return futureClass.computeType(compiler).createInstantiation([elementType]); |
2422 } | 2426 } |
2423 | 2427 |
2424 @override | 2428 @override |
2425 InterfaceType streamType([DartType elementType = const DynamicType()]) { | 2429 InterfaceType streamType([DartType elementType = const DynamicType()]) { |
2426 return streamClass.computeType(compiler).createInstantiation([elementType]); | 2430 return streamClass.computeType(compiler).createInstantiation([elementType]); |
2427 } | 2431 } |
2428 } | 2432 } |
2429 | 2433 |
2430 typedef void InternalErrorFunction(Spannable location, String message); | 2434 typedef void InternalErrorFunction(Spannable location, String message); |
OLD | NEW |