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

Unified Diff: pkg/analyzer/test/generated/resolver_test_case.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
Index: pkg/analyzer/test/generated/resolver_test_case.dart
diff --git a/pkg/analyzer/test/generated/resolver_test_case.dart b/pkg/analyzer/test/generated/resolver_test_case.dart
index e79552500959249b4bffeef443eb67c1346d5f2e..c9b1ad782dea37240f9c3c1528b314fe77f48cf4 100644
--- a/pkg/analyzer/test/generated/resolver_test_case.dart
+++ b/pkg/analyzer/test/generated/resolver_test_case.dart
@@ -402,7 +402,6 @@ class ResolverTestCase extends EngineTestCase {
// TODO(rnystrom): Use this in more tests that have the same structure.
void assertErrorsInCode(String code, List<ErrorCode> errors) {
Source source = addSource(code);
- computeLibrarySourceErrors(source);
assertErrors(source, errors);
verify([source]);
}
@@ -414,7 +413,6 @@ class ResolverTestCase extends EngineTestCase {
*/
void assertErrorsInUnverifiedCode(String code, List<ErrorCode> errors) {
Source source = addSource(code);
- computeLibrarySourceErrors(source);
assertErrors(source, errors);
}
@@ -435,7 +433,6 @@ class ResolverTestCase extends EngineTestCase {
// TODO(rnystrom): Use this in more tests that have the same structure.
void assertNoErrorsInCode(String code) {
Source source = addSource(code);
- computeLibrarySourceErrors(source);
assertNoErrors(source);
verify([source]);
}
@@ -500,15 +497,6 @@ class ResolverTestCase extends EngineTestCase {
}
/**
- * Computes errors for the given [librarySource].
- * This assumes that the given [librarySource] and its parts have already
- * been added to the content provider using the method [addNamedSource].
- */
- void computeLibrarySourceErrors(Source librarySource) {
- analysisContext.computeErrors(librarySource);
- }
-
- /**
* Create a library element that represents a library named `"test"` containing a single
* empty compilation unit.
*
« no previous file with comments | « pkg/analyzer/test/generated/resolver_test.dart ('k') | pkg/analyzer/test/generated/simple_resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698