Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Side by Side Diff: pkg/analyzer/test/src/summary/resynthesize_kernel_test.dart

Issue 2990733002: Don't resynthesize invalid constant expressions at all. (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/analyzer/test/src/summary/resynthesize_common.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 // https://github.com/dart-lang/sdk/issues/30265 152 // https://github.com/dart-lang/sdk/issues/30265
153 await super.test_closure_generic(); 153 await super.test_closure_generic();
154 } 154 }
155 155
156 @failingTest 156 @failingTest
157 test_closure_in_variable_declaration_in_part() async { 157 test_closure_in_variable_declaration_in_part() async {
158 await super.test_closure_in_variable_declaration_in_part(); 158 await super.test_closure_in_variable_declaration_in_part();
159 } 159 }
160 160
161 @failingTest 161 @failingTest
162 @fastaProblem
162 test_const_invalid_field_const() async { 163 test_const_invalid_field_const() async {
164 // Fasta generates additional `#errors` top-level variable.
163 await super.test_const_invalid_field_const(); 165 await super.test_const_invalid_field_const();
164 } 166 }
165 167
166 @failingTest 168 @failingTest
167 test_const_invalid_field_final() async {
168 await super.test_const_invalid_field_final();
169 }
170
171 @failingTest
172 @fastaProblem 169 @fastaProblem
173 test_const_invalid_intLiteral() async { 170 test_const_invalid_intLiteral() async {
174 // https://github.com/dart-lang/sdk/issues/30266 171 // https://github.com/dart-lang/sdk/issues/30266
175 await super.test_const_invalid_intLiteral(); 172 await super.test_const_invalid_intLiteral();
176 } 173 }
177 174
178 @failingTest 175 @failingTest
176 @fastaProblem
179 test_const_invalid_topLevel() async { 177 test_const_invalid_topLevel() async {
178 // Fasta generates additional `#errors` top-level variable.
180 await super.test_const_invalid_topLevel(); 179 await super.test_const_invalid_topLevel();
181 } 180 }
182 181
183 @failingTest 182 @failingTest
184 @fastaProblem 183 @fastaProblem
185 test_const_invokeConstructor_named_unresolved() async { 184 test_const_invokeConstructor_named_unresolved() async {
186 // https://github.com/dart-lang/sdk/issues/30267 185 // https://github.com/dart-lang/sdk/issues/30267
187 await super.test_const_invokeConstructor_named_unresolved(); 186 await super.test_const_invokeConstructor_named_unresolved();
188 } 187 }
189 188
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 test_exportImport_configurations_useFirst() async { 552 test_exportImport_configurations_useFirst() async {
554 await super.test_exportImport_configurations_useFirst(); 553 await super.test_exportImport_configurations_useFirst();
555 } 554 }
556 555
557 @failingTest 556 @failingTest
558 test_exports() async { 557 test_exports() async {
559 await super.test_exports(); 558 await super.test_exports();
560 } 559 }
561 560
562 @failingTest 561 @failingTest
563 test_expr_invalid_typeParameter_asPrefix() async {
564 await super.test_expr_invalid_typeParameter_asPrefix();
565 }
566
567 @failingTest
568 test_field_covariant() async { 562 test_field_covariant() async {
569 await super.test_field_covariant(); 563 await super.test_field_covariant();
570 } 564 }
571 565
572 @failingTest 566 @failingTest
573 test_field_documented() async { 567 test_field_documented() async {
574 await super.test_field_documented(); 568 await super.test_field_documented();
575 } 569 }
576 570
577 @failingTest 571 @failingTest
(...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after
1500 @override 1494 @override
1501 Future<List<int>> readAsBytes() async { 1495 Future<List<int>> readAsBytes() async {
1502 return file.readAsBytesSync(); 1496 return file.readAsBytesSync();
1503 } 1497 }
1504 1498
1505 @override 1499 @override
1506 Future<String> readAsString() async { 1500 Future<String> readAsString() async {
1507 return file.readAsStringSync(); 1501 return file.readAsStringSync();
1508 } 1502 }
1509 } 1503 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/src/summary/resynthesize_common.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698