| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 analyzer.test.src.summary.resynthesize_kernel_test; | 5 library analyzer.test.src.summary.resynthesize_kernel_test; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:analyzer/file_system/file_system.dart'; | 9 import 'package:analyzer/file_system/file_system.dart'; |
| 10 import 'package:analyzer/file_system/memory_file_system.dart'; | 10 import 'package:analyzer/file_system/memory_file_system.dart'; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 var library = libraryMap[testUriStr]; | 106 var library = libraryMap[testUriStr]; |
| 107 print(_getLibraryText(library)); | 107 print(_getLibraryText(library)); |
| 108 } | 108 } |
| 109 | 109 |
| 110 var resynthesizer = | 110 var resynthesizer = |
| 111 new KernelResynthesizer(context, kernelResult.types, libraryMap); | 111 new KernelResynthesizer(context, kernelResult.types, libraryMap); |
| 112 return resynthesizer.getLibrary(testUriStr); | 112 return resynthesizer.getLibrary(testUriStr); |
| 113 } | 113 } |
| 114 | 114 |
| 115 @failingTest | 115 @failingTest |
| 116 @fastaProblem |
| 116 test_class_constructor_field_formal_multiple_matching_fields() async { | 117 test_class_constructor_field_formal_multiple_matching_fields() async { |
| 117 // Fasta does not generate the class. | 118 // Fasta does not generate the class. |
| 118 // main() with a fatal error is generated instead. | 119 // main() with a fatal error is generated instead. |
| 119 await super.test_class_constructor_field_formal_multiple_matching_fields(); | 120 await super.test_class_constructor_field_formal_multiple_matching_fields(); |
| 120 } | 121 } |
| 121 | 122 |
| 122 @failingTest | 123 @failingTest |
| 123 @fastaProblem | 124 @fastaProblem |
| 124 test_class_type_parameters_bound() async { | 125 test_class_type_parameters_bound() async { |
| 125 // Fasta does not provide a flag for explicit vs. implicit Object bound. | 126 // Fasta does not provide a flag for explicit vs. implicit Object bound. |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 } | 231 } |
| 231 | 232 |
| 232 @failingTest | 233 @failingTest |
| 233 @fastaProblem | 234 @fastaProblem |
| 234 test_const_reference_unresolved_prefix2() async { | 235 test_const_reference_unresolved_prefix2() async { |
| 235 // https://github.com/dart-lang/sdk/issues/30267 | 236 // https://github.com/dart-lang/sdk/issues/30267 |
| 236 await super.test_const_reference_unresolved_prefix2(); | 237 await super.test_const_reference_unresolved_prefix2(); |
| 237 } | 238 } |
| 238 | 239 |
| 239 @failingTest | 240 @failingTest |
| 240 test_const_topLevel_ifNull() async { | |
| 241 await super.test_const_topLevel_ifNull(); | |
| 242 } | |
| 243 | |
| 244 @failingTest | |
| 245 @fastaProblem | 241 @fastaProblem |
| 246 test_const_topLevel_super() async { | 242 test_const_topLevel_super() async { |
| 247 // https://github.com/dart-lang/sdk/issues/30267 | 243 // https://github.com/dart-lang/sdk/issues/30267 |
| 248 await super.test_const_topLevel_super(); | 244 await super.test_const_topLevel_super(); |
| 249 } | 245 } |
| 250 | 246 |
| 251 @failingTest | 247 @failingTest |
| 252 @fastaProblem | 248 @fastaProblem |
| 253 test_const_topLevel_this() async { | 249 test_const_topLevel_this() async { |
| 254 // https://github.com/dart-lang/sdk/issues/30267 | 250 // https://github.com/dart-lang/sdk/issues/30267 |
| (...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 835 @override | 831 @override |
| 836 Future<List<int>> readAsBytes() async { | 832 Future<List<int>> readAsBytes() async { |
| 837 return file.readAsBytesSync(); | 833 return file.readAsBytesSync(); |
| 838 } | 834 } |
| 839 | 835 |
| 840 @override | 836 @override |
| 841 Future<String> readAsString() async { | 837 Future<String> readAsString() async { |
| 842 return file.readAsStringSync(); | 838 return file.readAsStringSync(); |
| 843 } | 839 } |
| 844 } | 840 } |
| OLD | NEW |