| 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/dart/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; |
| 10 import 'package:analyzer/dart/ast/standard_ast_factory.dart'; | 10 import 'package:analyzer/dart/ast/standard_ast_factory.dart'; |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 return resynthesizer.getLibrary(testUriStr); | 102 return resynthesizer.getLibrary(testUriStr); |
| 103 } | 103 } |
| 104 | 104 |
| 105 @override | 105 @override |
| 106 SummaryResynthesizer encodeDecodeLibrarySource(Source librarySource) { | 106 SummaryResynthesizer encodeDecodeLibrarySource(Source librarySource) { |
| 107 // TODO(scheglov): implement encodeDecodeLibrarySource | 107 // TODO(scheglov): implement encodeDecodeLibrarySource |
| 108 throw new UnimplementedError(); | 108 throw new UnimplementedError(); |
| 109 } | 109 } |
| 110 | 110 |
| 111 @failingTest | 111 @failingTest |
| 112 test_class_alias() async { | |
| 113 await super.test_class_alias(); | |
| 114 } | |
| 115 | |
| 116 @failingTest | |
| 117 test_class_alias_abstract() async { | |
| 118 await super.test_class_alias_abstract(); | |
| 119 } | |
| 120 | |
| 121 @failingTest | |
| 122 test_class_alias_documented() async { | 112 test_class_alias_documented() async { |
| 123 await super.test_class_alias_documented(); | 113 await super.test_class_alias_documented(); |
| 124 } | 114 } |
| 125 | 115 |
| 126 @failingTest | 116 @failingTest |
| 127 test_class_alias_with_forwarding_constructors() async { | 117 test_class_alias_with_forwarding_constructors() async { |
| 128 await super.test_class_alias_with_forwarding_constructors(); | 118 await super.test_class_alias_with_forwarding_constructors(); |
| 129 } | 119 } |
| 130 | 120 |
| 131 @failingTest | 121 @failingTest |
| 132 test_class_alias_with_forwarding_constructors_type_substitution() async { | 122 test_class_alias_with_forwarding_constructors_type_substitution() async { |
| 133 await super | 123 await super |
| 134 .test_class_alias_with_forwarding_constructors_type_substitution(); | 124 .test_class_alias_with_forwarding_constructors_type_substitution(); |
| 135 } | 125 } |
| 136 | 126 |
| 137 @failingTest | 127 @failingTest |
| 138 test_class_alias_with_forwarding_constructors_type_substitution_complex() asyn
c { | 128 test_class_alias_with_forwarding_constructors_type_substitution_complex() asyn
c { |
| 139 await super | 129 await super |
| 140 .test_class_alias_with_forwarding_constructors_type_substitution_complex
(); | 130 .test_class_alias_with_forwarding_constructors_type_substitution_complex
(); |
| 141 } | 131 } |
| 142 | 132 |
| 143 @failingTest | 133 @failingTest |
| 144 test_class_alias_with_mixin_members() async { | |
| 145 await super.test_class_alias_with_mixin_members(); | |
| 146 } | |
| 147 | |
| 148 @failingTest | |
| 149 test_class_constructor_field_formal_multiple_matching_fields() async { | 134 test_class_constructor_field_formal_multiple_matching_fields() async { |
| 150 // Fasta does not generate the class. | 135 // Fasta does not generate the class. |
| 151 // main() with a fatal error is generated instead. | 136 // main() with a fatal error is generated instead. |
| 152 await super.test_class_constructor_field_formal_multiple_matching_fields(); | 137 await super.test_class_constructor_field_formal_multiple_matching_fields(); |
| 153 } | 138 } |
| 154 | 139 |
| 155 @failingTest | 140 @failingTest |
| 156 test_class_documented_tripleSlash() async { | 141 test_class_documented_tripleSlash() async { |
| 157 await super.test_class_documented_tripleSlash(); | 142 await super.test_class_documented_tripleSlash(); |
| 158 } | 143 } |
| 159 | 144 |
| 160 @failingTest | 145 @failingTest |
| 161 test_class_documented_withLeadingNotDocumentation() async { | 146 test_class_documented_withLeadingNotDocumentation() async { |
| 162 await super.test_class_documented_withLeadingNotDocumentation(); | 147 await super.test_class_documented_withLeadingNotDocumentation(); |
| 163 } | 148 } |
| 164 | 149 |
| 165 @failingTest | 150 @failingTest |
| 166 test_class_interfaces_unresolved() async { | 151 test_class_interfaces_unresolved() async { |
| 167 await super.test_class_interfaces_unresolved(); | 152 await super.test_class_interfaces_unresolved(); |
| 168 } | 153 } |
| 169 | 154 |
| 170 @failingTest | 155 @failingTest |
| 171 test_class_mixins() async { | |
| 172 await super.test_class_mixins(); | |
| 173 } | |
| 174 | |
| 175 @failingTest | |
| 176 test_class_mixins_unresolved() async { | 156 test_class_mixins_unresolved() async { |
| 177 await super.test_class_mixins_unresolved(); | 157 await super.test_class_mixins_unresolved(); |
| 178 } | 158 } |
| 179 | 159 |
| 180 @failingTest | 160 @failingTest |
| 181 test_class_supertype_unresolved() async { | 161 test_class_supertype_unresolved() async { |
| 182 await super.test_class_supertype_unresolved(); | 162 await super.test_class_supertype_unresolved(); |
| 183 } | 163 } |
| 184 | 164 |
| 185 @failingTest | 165 @failingTest |
| (...skipping 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1221 test_library_documented_stars() async { | 1201 test_library_documented_stars() async { |
| 1222 await super.test_library_documented_stars(); | 1202 await super.test_library_documented_stars(); |
| 1223 } | 1203 } |
| 1224 | 1204 |
| 1225 @failingTest | 1205 @failingTest |
| 1226 test_localFunctions_inTopLevelGetter() async { | 1206 test_localFunctions_inTopLevelGetter() async { |
| 1227 await super.test_localFunctions_inTopLevelGetter(); | 1207 await super.test_localFunctions_inTopLevelGetter(); |
| 1228 } | 1208 } |
| 1229 | 1209 |
| 1230 @failingTest | 1210 @failingTest |
| 1231 test_main_class_alias() async { | |
| 1232 await super.test_main_class_alias(); | |
| 1233 } | |
| 1234 | |
| 1235 @failingTest | |
| 1236 test_main_class_alias_via_export() async { | 1211 test_main_class_alias_via_export() async { |
| 1237 await super.test_main_class_alias_via_export(); | 1212 await super.test_main_class_alias_via_export(); |
| 1238 } | 1213 } |
| 1239 | 1214 |
| 1240 @failingTest | 1215 @failingTest |
| 1241 test_main_class_via_export() async { | 1216 test_main_class_via_export() async { |
| 1242 await super.test_main_class_via_export(); | 1217 await super.test_main_class_via_export(); |
| 1243 } | 1218 } |
| 1244 | 1219 |
| 1245 @failingTest | 1220 @failingTest |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1426 test_metadata_simpleFormalParameter_withDefault() async { | 1401 test_metadata_simpleFormalParameter_withDefault() async { |
| 1427 await super.test_metadata_simpleFormalParameter_withDefault(); | 1402 await super.test_metadata_simpleFormalParameter_withDefault(); |
| 1428 } | 1403 } |
| 1429 | 1404 |
| 1430 @failingTest | 1405 @failingTest |
| 1431 test_metadata_topLevelVariableDeclaration() async { | 1406 test_metadata_topLevelVariableDeclaration() async { |
| 1432 await super.test_metadata_topLevelVariableDeclaration(); | 1407 await super.test_metadata_topLevelVariableDeclaration(); |
| 1433 } | 1408 } |
| 1434 | 1409 |
| 1435 @failingTest | 1410 @failingTest |
| 1436 test_metadata_typeParameter_ofClassTypeAlias() async { | |
| 1437 await super.test_metadata_typeParameter_ofClassTypeAlias(); | |
| 1438 } | |
| 1439 | |
| 1440 @failingTest | |
| 1441 test_metadata_typeParameter_ofFunction() async { | 1411 test_metadata_typeParameter_ofFunction() async { |
| 1442 await super.test_metadata_typeParameter_ofFunction(); | 1412 await super.test_metadata_typeParameter_ofFunction(); |
| 1443 } | 1413 } |
| 1444 | 1414 |
| 1445 @failingTest | 1415 @failingTest |
| 1446 test_metadata_typeParameter_ofTypedef() async { | 1416 test_metadata_typeParameter_ofTypedef() async { |
| 1447 await super.test_metadata_typeParameter_ofTypedef(); | 1417 await super.test_metadata_typeParameter_ofTypedef(); |
| 1448 } | 1418 } |
| 1449 | 1419 |
| 1450 @failingTest | 1420 @failingTest |
| (...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2422 } | 2392 } |
| 2423 | 2393 |
| 2424 /** | 2394 /** |
| 2425 * Get the [Source] object for the given [uri]. | 2395 * Get the [Source] object for the given [uri]. |
| 2426 */ | 2396 */ |
| 2427 Source _getSource(String uri) { | 2397 Source _getSource(String uri) { |
| 2428 return _sources.putIfAbsent( | 2398 return _sources.putIfAbsent( |
| 2429 uri, () => _analysisContext.sourceFactory.forUri(uri)); | 2399 uri, () => _analysisContext.sourceFactory.forUri(uri)); |
| 2430 } | 2400 } |
| 2431 } | 2401 } |
| OLD | NEW |