| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 library dart2js.kernel.impact_test; | 5 library dart2js.kernel.impact_test; |
| 6 | 6 |
| 7 import 'package:async_helper/async_helper.dart'; | 7 import 'package:async_helper/async_helper.dart'; |
| 8 import 'package:compiler/src/commandline_options.dart'; | 8 import 'package:compiler/src/commandline_options.dart'; |
| 9 import 'package:compiler/src/common.dart'; | 9 import 'package:compiler/src/common.dart'; |
| 10 import 'package:compiler/src/common/names.dart'; | 10 import 'package:compiler/src/common/names.dart'; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 testNull(); | 48 testNull(); |
| 49 testTrue(); | 49 testTrue(); |
| 50 testFalse(); | 50 testFalse(); |
| 51 testInt(); | 51 testInt(); |
| 52 testDouble(); | 52 testDouble(); |
| 53 testString(); | 53 testString(); |
| 54 testStringInterpolation(); | 54 testStringInterpolation(); |
| 55 testStringInterpolationConst(); | 55 testStringInterpolationConst(); |
| 56 testStringJuxtaposition(); | 56 testStringJuxtaposition(); |
| 57 testSymbol(); | 57 testSymbol(); |
| 58 testConstSymbol(); |
| 58 testTypeLiteral(); | 59 testTypeLiteral(); |
| 59 testBoolFromEnvironment(); | 60 testBoolFromEnvironment(); |
| 60 testEmptyListLiteral(); | 61 testEmptyListLiteral(); |
| 61 testEmptyListLiteralDynamic(); | 62 testEmptyListLiteralDynamic(); |
| 62 testEmptyListLiteralTyped(); | 63 testEmptyListLiteralTyped(); |
| 63 testEmptyListLiteralConstant(); | 64 testEmptyListLiteralConstant(); |
| 64 testNonEmptyListLiteral(); | 65 testNonEmptyListLiteral(); |
| 65 testEmptyMapLiteral(); | 66 testEmptyMapLiteral(); |
| 66 testEmptyMapLiteralDynamic(); | 67 testEmptyMapLiteralDynamic(); |
| 67 testEmptyMapLiteralTyped(); | 68 testEmptyMapLiteralTyped(); |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 testFalse() => false; | 209 testFalse() => false; |
| 209 testInt() => 42; | 210 testInt() => 42; |
| 210 testDouble() => 37.5; | 211 testDouble() => 37.5; |
| 211 testString() => 'foo'; | 212 testString() => 'foo'; |
| 212 testStringInterpolation() => '${0}'; | 213 testStringInterpolation() => '${0}'; |
| 213 testStringInterpolationConst() { | 214 testStringInterpolationConst() { |
| 214 const b = '${0}'; | 215 const b = '${0}'; |
| 215 } | 216 } |
| 216 testStringJuxtaposition() => 'a' 'b'; | 217 testStringJuxtaposition() => 'a' 'b'; |
| 217 testSymbol() => #main; | 218 testSymbol() => #main; |
| 219 testConstSymbol() => const Symbol('main'); |
| 218 testTypeLiteral() => Object; | 220 testTypeLiteral() => Object; |
| 219 testBoolFromEnvironment() => const bool.fromEnvironment('FOO'); | 221 testBoolFromEnvironment() => const bool.fromEnvironment('FOO'); |
| 220 testEmptyListLiteral() => []; | 222 testEmptyListLiteral() => []; |
| 221 testEmptyListLiteralDynamic() => <dynamic>[]; | 223 testEmptyListLiteralDynamic() => <dynamic>[]; |
| 222 testEmptyListLiteralTyped() => <String>[]; | 224 testEmptyListLiteralTyped() => <String>[]; |
| 223 testEmptyListLiteralConstant() => const []; | 225 testEmptyListLiteralConstant() => const []; |
| 224 testNonEmptyListLiteral() => [0]; | 226 testNonEmptyListLiteral() => [0]; |
| 225 testEmptyMapLiteral() => {}; | 227 testEmptyMapLiteral() => {}; |
| 226 testEmptyMapLiteralDynamic() => <dynamic, dynamic>{}; | 228 testEmptyMapLiteralDynamic() => <dynamic, dynamic>{}; |
| 227 testEmptyMapLiteralTyped() => <String, int>{}; | 229 testEmptyMapLiteralTyped() => <String, int>{}; |
| (...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 919 visitList(type.optionalParameterTypes), | 921 visitList(type.optionalParameterTypes), |
| 920 type.namedParameters, | 922 type.namedParameters, |
| 921 visitList(type.namedParameterTypes)); | 923 visitList(type.namedParameterTypes)); |
| 922 } | 924 } |
| 923 } | 925 } |
| 924 | 926 |
| 925 /// Perform unaliasing of all typedefs nested within a [ResolutionDartType]. | 927 /// Perform unaliasing of all typedefs nested within a [ResolutionDartType]. |
| 926 ResolutionDartType unalias(ResolutionDartType type) { | 928 ResolutionDartType unalias(ResolutionDartType type) { |
| 927 return const Unaliaser().visit(type); | 929 return const Unaliaser().visit(type); |
| 928 } | 930 } |
| OLD | NEW |