| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 return resynthesizer.getLibrary(testUriStr); | 105 return resynthesizer.getLibrary(testUriStr); |
| 106 } | 106 } |
| 107 | 107 |
| 108 @override | 108 @override |
| 109 SummaryResynthesizer encodeDecodeLibrarySource(Source librarySource) { | 109 SummaryResynthesizer encodeDecodeLibrarySource(Source librarySource) { |
| 110 // TODO(scheglov): implement encodeDecodeLibrarySource | 110 // TODO(scheglov): implement encodeDecodeLibrarySource |
| 111 throw new UnimplementedError(); | 111 throw new UnimplementedError(); |
| 112 } | 112 } |
| 113 | 113 |
| 114 @failingTest | 114 @failingTest |
| 115 test_class_alias_documented() async { | |
| 116 await super.test_class_alias_documented(); | |
| 117 } | |
| 118 | |
| 119 @failingTest | |
| 120 @_fastaProblem | |
| 121 test_class_constructor_field_formal_multiple_matching_fields() async { | 115 test_class_constructor_field_formal_multiple_matching_fields() async { |
| 122 // Fasta does not generate the class. | 116 // Fasta does not generate the class. |
| 123 // main() with a fatal error is generated instead. | 117 // main() with a fatal error is generated instead. |
| 124 await super.test_class_constructor_field_formal_multiple_matching_fields(); | 118 await super.test_class_constructor_field_formal_multiple_matching_fields(); |
| 125 } | 119 } |
| 126 | 120 |
| 127 @failingTest | 121 @failingTest |
| 128 test_class_documented_tripleSlash() async { | |
| 129 await super.test_class_documented_tripleSlash(); | |
| 130 } | |
| 131 | |
| 132 @failingTest | |
| 133 test_class_documented_withLeadingNotDocumentation() async { | |
| 134 await super.test_class_documented_withLeadingNotDocumentation(); | |
| 135 } | |
| 136 | |
| 137 @failingTest | |
| 138 @_fastaProblem | |
| 139 test_class_interfaces_unresolved() async { | 122 test_class_interfaces_unresolved() async { |
| 140 // Fasta generates additional `#errors` top-level variable. | 123 // Fasta generates additional `#errors` top-level variable. |
| 141 await super.test_class_interfaces_unresolved(); | 124 await super.test_class_interfaces_unresolved(); |
| 142 } | 125 } |
| 143 | 126 |
| 144 @failingTest | 127 @failingTest |
| 145 @_fastaProblem | 128 @_fastaProblem |
| 146 test_class_mixins_unresolved() async { | 129 test_class_mixins_unresolved() async { |
| 147 // Fasta generates additional `#errors` top-level variable. | 130 // Fasta generates additional `#errors` top-level variable. |
| 148 await super.test_class_mixins_unresolved(); | 131 await super.test_class_mixins_unresolved(); |
| (...skipping 2123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2272 } | 2255 } |
| 2273 | 2256 |
| 2274 /** | 2257 /** |
| 2275 * Get the [Source] object for the given [uri]. | 2258 * Get the [Source] object for the given [uri]. |
| 2276 */ | 2259 */ |
| 2277 Source _getSource(String uri) { | 2260 Source _getSource(String uri) { |
| 2278 return _sources.putIfAbsent( | 2261 return _sources.putIfAbsent( |
| 2279 uri, () => _analysisContext.sourceFactory.forUri(uri)); | 2262 uri, () => _analysisContext.sourceFactory.forUri(uri)); |
| 2280 } | 2263 } |
| 2281 } | 2264 } |
| OLD | NEW |