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

Unified Diff: pkg/analyzer/test/generated/strong_mode_test.dart

Issue 2626653002: Remove computeLibrarySourceErrors(). (Closed)
Patch Set: Created 3 years, 11 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/test/generated/static_warning_code_test.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/generated/strong_mode_test.dart
diff --git a/pkg/analyzer/test/generated/strong_mode_test.dart b/pkg/analyzer/test/generated/strong_mode_test.dart
index 3d1948f3e595ed1bc48493d496525fb26167ea9c..5eddb57d8f9205fce14fe864ca504cb6e6a0da28 100644
--- a/pkg/analyzer/test/generated/strong_mode_test.dart
+++ b/pkg/analyzer/test/generated/strong_mode_test.dart
@@ -2080,7 +2080,6 @@ class A {
}
dynamic set g(int x) => null;
''');
- computeLibrarySourceErrors(source);
assertErrors(source, [
StaticWarningCode.NON_VOID_RETURN_FOR_SETTER,
StaticWarningCode.NON_VOID_RETURN_FOR_SETTER
@@ -2096,7 +2095,6 @@ class A {
}
void set g(int x) => returnsVoid();
''');
- computeLibrarySourceErrors(source);
assertNoErrors(source);
verify([source]);
}
@@ -2110,7 +2108,6 @@ class A {
}
set g(int x) => 42;
''');
- computeLibrarySourceErrors(source);
assertErrors(source, [
StaticTypeWarningCode.RETURN_OF_INVALID_TYPE,
]);
@@ -2125,7 +2122,6 @@ class A {
}
set g(int x) => returnsVoid();
''');
- computeLibrarySourceErrors(source);
assertNoErrors(source);
verify([source]);
}
@@ -2137,7 +2133,6 @@ class A {
}
Object set g(x) => null;
''');
- computeLibrarySourceErrors(source);
assertErrors(source, [
StaticWarningCode.NON_VOID_RETURN_FOR_SETTER,
StaticWarningCode.NON_VOID_RETURN_FOR_SETTER
« no previous file with comments | « pkg/analyzer/test/generated/static_warning_code_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698