Index: pkg/analyzer/test/generated/resolver_test.dart |
diff --git a/pkg/analyzer/test/generated/resolver_test.dart b/pkg/analyzer/test/generated/resolver_test.dart |
index 1a6c459aa6b6f2a92c3abaf4d78a5b9ea58023c3..b51be7fd29ec97c53abb3da25a75eb60c498236f 100644 |
--- a/pkg/analyzer/test/generated/resolver_test.dart |
+++ b/pkg/analyzer/test/generated/resolver_test.dart |
@@ -8371,7 +8371,7 @@ class ResolverTestCase extends EngineTestCase { |
} |
/** |
- * Asserts that [code] has errors with the given error codes. |
+ * Asserts that [code] verifies, but has errors with the given error codes. |
* |
* Like [assertErrors], but takes a string of source code. |
*/ |
@@ -8384,6 +8384,17 @@ class ResolverTestCase extends EngineTestCase { |
} |
/** |
+ * Asserts that [code] has errors with the given error codes. |
+ * |
+ * Like [assertErrors], but takes a string of source code. |
+ */ |
+ void assertErrorsInUnverifiedCode(String code, List<ErrorCode> errors) { |
+ Source source = addSource(code); |
+ computeLibrarySourceErrors(source); |
+ assertErrors(source, errors); |
+ } |
+ |
+ /** |
* Assert that no errors have been reported against the given source. |
* |
* @param source the source against which no errors should have been reported |