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 2501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2512 InterfaceType streamType([DartType elementType]) { | 2512 InterfaceType streamType([DartType elementType]) { |
2513 InterfaceType type = streamClass.computeType(compiler); | 2513 InterfaceType type = streamClass.computeType(compiler); |
2514 if (elementType == null) { | 2514 if (elementType == null) { |
2515 return streamClass.rawType; | 2515 return streamClass.rawType; |
2516 } | 2516 } |
2517 return type.createInstantiation([elementType]); | 2517 return type.createInstantiation([elementType]); |
2518 } | 2518 } |
2519 } | 2519 } |
2520 | 2520 |
2521 typedef void InternalErrorFunction(Spannable location, String message); | 2521 typedef void InternalErrorFunction(Spannable location, String message); |
OLD | NEW |