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

Unified Diff: pkg/dev_compiler/lib/src/compiler/error_helpers.dart

Issue 2564323002: Fix warnings (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_cli/lib/src/analyzer_impl.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dev_compiler/lib/src/compiler/error_helpers.dart
diff --git a/pkg/dev_compiler/lib/src/compiler/error_helpers.dart b/pkg/dev_compiler/lib/src/compiler/error_helpers.dart
index 091ab6251575b9f3e8551f3ebd9750ddd2a0b3e4..ec730d341858c2d3aa99a3943894c3468b55998d 100644
--- a/pkg/dev_compiler/lib/src/compiler/error_helpers.dart
+++ b/pkg/dev_compiler/lib/src/compiler/error_helpers.dart
@@ -60,6 +60,8 @@ ErrorSeverity errorSeverity(AnalysisContext context, AnalysisError error) {
// * it can return null
// * using AnalysisError directly is now suspect, it's a correctness trap
// * it requires an AnalysisContext
- return ErrorProcessor.getProcessor(context, error)?.severity ??
+ return ErrorProcessor
+ .getProcessor(context.analysisOptions, error)
+ ?.severity ??
error.errorCode.errorSeverity;
}
« no previous file with comments | « pkg/analyzer_cli/lib/src/analyzer_impl.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698