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

Unified Diff: pkg/analyzer/test/src/task/strong/strong_test_helper.dart

Issue 2566013002: Implement 'analysis.getErrors' for the new driver. (Closed)
Patch Set: Created 4 years 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/source/error_processor_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/src/task/strong/strong_test_helper.dart
diff --git a/pkg/analyzer/test/src/task/strong/strong_test_helper.dart b/pkg/analyzer/test/src/task/strong/strong_test_helper.dart
index fd162c8b883f13b2653d1346d44da05ea2e5a530..c2debb8bddcbe088e9e8f2b7c568c668e6c33777 100644
--- a/pkg/analyzer/test/src/task/strong/strong_test_helper.dart
+++ b/pkg/analyzer/test/src/task/strong/strong_test_helper.dart
@@ -175,7 +175,9 @@ String _errorCodeName(ErrorCode errorCode) {
ErrorSeverity _errorSeverity(AnalysisContext context, AnalysisError error) {
// Attempt to process severity in a similar way to analyzer_cli and server.
- return ErrorProcessor.getProcessor(context, error)?.severity ??
+ return ErrorProcessor
+ .getProcessor(context.analysisOptions, error)
+ ?.severity ??
error.errorCode.errorSeverity;
}
« no previous file with comments | « pkg/analyzer/test/source/error_processor_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698