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

Unified Diff: pkg/analyzer/test/src/summary/summary_common.dart

Issue 2972233002: Don't summarize labels, remove resynthesis code for labels. (Closed)
Patch Set: Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/summary/summarize_ast.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/summary/summary_common.dart
diff --git a/pkg/analyzer/test/src/summary/summary_common.dart b/pkg/analyzer/test/src/summary/summary_common.dart
index f163716d0b6b66efa51087cccd7a9b6da61670de..accd5df475aecd7d8c84f8c3d7794bbd1b46544f 100644
--- a/pkg/analyzer/test/src/summary/summary_common.dart
+++ b/pkg/analyzer/test/src/summary/summary_common.dart
@@ -5340,63 +5340,6 @@ f() {
expect(functions, isEmpty);
}
- test_executable_localLabels_inMethod() {
- String code = r'''
-class C {
- m() {
- aaa: while (true) {}
- bbb: while (true) {}
- }
-}
-''';
- UnlinkedExecutable executable =
- findExecutable('m', executables: serializeClassText(code).executables);
- List<UnlinkedLabel> labels = executable.localLabels;
- expect(labels, isEmpty);
- }
-
- test_executable_localLabels_inTopLevelFunction() {
- String code = r'''
-f() {
- aaa: while (true) {}
- bbb: switch (42) {
- ccc: case 0:
- break;
- ddd: default:
- break;
- }
-}
-''';
- UnlinkedExecutable executable = serializeExecutableText(code);
- List<UnlinkedLabel> labels = executable.localLabels;
- expect(labels, isEmpty);
- }
-
- test_executable_localLabels_inTopLevelGetter() {
- String code = r'''
-get g {
- aaa: while (true) {}
- bbb: while (true) {}
-}
-''';
- UnlinkedExecutable executable =
- serializeExecutableText(code, executableName: 'g');
- List<UnlinkedLabel> labels = executable.localLabels;
- expect(labels, isEmpty);
- }
-
- test_executable_localLabels_namedExpressionLabel() {
- String code = r'''
-f() {
- foo(p: 42);
-}
-foo({int p}) {}
-''';
- UnlinkedExecutable executable = serializeExecutableText(code);
- List<UnlinkedLabel> labels = executable.localLabels;
- expect(labels, isEmpty);
- }
-
test_executable_member_function() {
UnlinkedExecutable executable = findExecutable('f',
executables: serializeClassText('class C { f() {} }').executables);
« no previous file with comments | « pkg/analyzer/lib/src/summary/summarize_ast.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698