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 import 'dart:async'; | 5 import 'dart:async'; |
6 import "package:expect/expect.dart"; | 6 import "package:expect/expect.dart"; |
7 import "package:async_helper/async_helper.dart"; | 7 import "package:async_helper/async_helper.dart"; |
8 import 'package:compiler/implementation/types/types.dart'; | 8 import 'package:compiler/implementation/types/types.dart'; |
9 import 'package:compiler/implementation/inferrer/concrete_types_inferrer.dart'; | 9 import 'package:compiler/implementation/inferrer/concrete_types_inferrer.dart'; |
10 | 10 |
(...skipping 1441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1452 result.checkNodeHasType('eNull', maybe(expectedEType)); | 1452 result.checkNodeHasType('eNull', maybe(expectedEType)); |
1453 final expectedFType = [result.double]; | 1453 final expectedFType = [result.double]; |
1454 result.checkNodeHasType('f', expectedFType); | 1454 result.checkNodeHasType('f', expectedFType); |
1455 result.checkNodeHasType('fNull', maybe(expectedFType)); | 1455 result.checkNodeHasType('fNull', maybe(expectedFType)); |
1456 final expectedGType = [result.num]; | 1456 final expectedGType = [result.num]; |
1457 result.checkNodeHasType('g', expectedGType); | 1457 result.checkNodeHasType('g', expectedGType); |
1458 result.checkNodeHasType('gNull', maybe(expectedGType)); | 1458 result.checkNodeHasType('gNull', maybe(expectedGType)); |
1459 final expectedType = [result.bool]; | 1459 final expectedType = [result.bool]; |
1460 result.checkNodeHasType('h', expectedType); | 1460 result.checkNodeHasType('h', expectedType); |
1461 result.checkNodeHasType('hNull', maybe(expectedType)); | 1461 result.checkNodeHasType('hNull', maybe(expectedType)); |
1462 final expectedIType = [result.base('A'), result.base('B'), | 1462 final expectedIType = [result.base('B'), |
1463 result.base('BB'), result.base('C'), | 1463 result.base('BB'), |
| 1464 result.base('C'), |
1464 result.base('D')]; | 1465 result.base('D')]; |
1465 result.checkNodeHasType('i', expectedIType); | 1466 result.checkNodeHasType('i', expectedIType); |
1466 result.checkNodeHasType('iNull', maybe(expectedIType)); | 1467 result.checkNodeHasType('iNull', maybe(expectedIType)); |
1467 }); | 1468 }); |
1468 } | 1469 } |
1469 | 1470 |
1470 testJsCallAugmentsSeenClasses() { | 1471 testJsCallAugmentsSeenClasses() { |
1471 final String source1 = """ | 1472 final String source1 = """ |
1472 main () { | 1473 main () { |
1473 var x = $DYNAMIC.truncate(); | 1474 var x = $DYNAMIC.truncate(); |
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2134 testClosures10, | 2135 testClosures10, |
2135 testClosures11, | 2136 testClosures11, |
2136 testClosures12, | 2137 testClosures12, |
2137 testRefinement, | 2138 testRefinement, |
2138 testDefaultArguments, | 2139 testDefaultArguments, |
2139 testSuperConstructorCall, | 2140 testSuperConstructorCall, |
2140 testSuperConstructorCall2, | 2141 testSuperConstructorCall2, |
2141 testSuperConstructorCall3, | 2142 testSuperConstructorCall3, |
2142 ], (f) => f())); | 2143 ], (f) => f())); |
2143 } | 2144 } |
OLD | NEW |