| 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 2377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2388 } | 2388 } |
| 2389 | 2389 |
| 2390 @override | 2390 @override |
| 2391 InterfaceType get nullType => nullClass.computeType(compiler); | 2391 InterfaceType get nullType => nullClass.computeType(compiler); |
| 2392 | 2392 |
| 2393 @override | 2393 @override |
| 2394 InterfaceType get numType => numClass.computeType(compiler); | 2394 InterfaceType get numType => numClass.computeType(compiler); |
| 2395 | 2395 |
| 2396 @override | 2396 @override |
| 2397 InterfaceType get stringType => stringClass.computeType(compiler); | 2397 InterfaceType get stringType => stringClass.computeType(compiler); |
| 2398 |
| 2399 @override |
| 2400 InterfaceType iterableType([DartType elementType = const DynamicType()]) { |
| 2401 return iterableClass.computeType(compiler) |
| 2402 .createInstantiation([elementType]); |
| 2403 } |
| 2404 |
| 2405 @override |
| 2406 InterfaceType futureType([DartType elementType = const DynamicType()]) { |
| 2407 return futureClass.computeType(compiler).createInstantiation([elementType]); |
| 2408 } |
| 2409 |
| 2410 @override |
| 2411 InterfaceType streamType([DartType elementType = const DynamicType()]) { |
| 2412 return streamClass.computeType(compiler).createInstantiation([elementType]); |
| 2413 } |
| 2398 } | 2414 } |
| 2399 | 2415 |
| 2400 typedef void InternalErrorFunction(Spannable location, String message); | 2416 typedef void InternalErrorFunction(Spannable location, String message); |
| OLD | NEW |