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 '../../../sdk/lib/_internal/compiler/implementation/source_file.dart'; | 8 import '../../../sdk/lib/_internal/compiler/implementation/source_file.dart'; |
9 import '../../../sdk/lib/_internal/compiler/implementation/types/types.dart'; | 9 import '../../../sdk/lib/_internal/compiler/implementation/types/types.dart'; |
10 import '../../../sdk/lib/_internal/compiler/implementation/types/concrete_types_
inferrer.dart'; | 10 import '../../../sdk/lib/_internal/compiler/implementation/types/concrete_types_
inferrer.dart'; |
(...skipping 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1344 result.checkNodeHasType('dNull', maybe(expectedDType)); | 1344 result.checkNodeHasType('dNull', maybe(expectedDType)); |
1345 final expectedEType = [result.int]; | 1345 final expectedEType = [result.int]; |
1346 result.checkNodeHasType('e', expectedEType); | 1346 result.checkNodeHasType('e', expectedEType); |
1347 result.checkNodeHasType('eNull', maybe(expectedEType)); | 1347 result.checkNodeHasType('eNull', maybe(expectedEType)); |
1348 final expectedFType = [result.double]; | 1348 final expectedFType = [result.double]; |
1349 result.checkNodeHasType('f', expectedFType); | 1349 result.checkNodeHasType('f', expectedFType); |
1350 result.checkNodeHasType('fNull', maybe(expectedFType)); | 1350 result.checkNodeHasType('fNull', maybe(expectedFType)); |
1351 final expectedGType = [result.num]; | 1351 final expectedGType = [result.num]; |
1352 result.checkNodeHasType('g', expectedGType); | 1352 result.checkNodeHasType('g', expectedGType); |
1353 result.checkNodeHasType('gNull', maybe(expectedGType)); | 1353 result.checkNodeHasType('gNull', maybe(expectedGType)); |
1354 final expectedHType = [result.bool]; | 1354 final expectedType = [result.bool]; |
1355 result.checkNodeHasType('h', expectedHType); | 1355 result.checkNodeHasType('h', expectedType); |
1356 result.checkNodeHasType('hNull', maybe(expectedHType)); | 1356 result.checkNodeHasType('hNull', maybe(expectedType)); |
1357 final expectedIType = [result.base('A'), result.base('B'), | 1357 final expectedIType = [result.base('A'), result.base('B'), |
1358 result.base('BB'), result.base('C'), | 1358 result.base('BB'), result.base('C'), |
1359 result.base('D')]; | 1359 result.base('D')]; |
1360 result.checkNodeHasType('i', expectedIType); | 1360 result.checkNodeHasType('i', expectedIType); |
1361 result.checkNodeHasType('iNull', maybe(expectedIType)); | 1361 result.checkNodeHasType('iNull', maybe(expectedIType)); |
1362 result.checkNodeHasType('j', []); | 1362 result.checkNodeHasType('j', []); |
1363 }); | 1363 }); |
1364 } | 1364 } |
1365 | 1365 |
1366 testJsCallAugmentsSeenClasses() { | 1366 testJsCallAugmentsSeenClasses() { |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1701 testIsCheck, | 1701 testIsCheck, |
1702 testSeenClasses, | 1702 testSeenClasses, |
1703 testIntDoubleNum, | 1703 testIntDoubleNum, |
1704 testConcreteTypeToTypeMask, | 1704 testConcreteTypeToTypeMask, |
1705 testSelectors, | 1705 testSelectors, |
1706 testMixins, | 1706 testMixins, |
1707 testClosures, | 1707 testClosures, |
1708 testNestedFunctions, | 1708 testNestedFunctions, |
1709 ], (f) => f())); | 1709 ], (f) => f())); |
1710 } | 1710 } |
OLD | NEW |