Skip to content

Commit b0b74b2

Browse files
srawlinsCommit Queue
authored andcommitted
Rename some loose ends w.r.t. "errorSeverity"
Change-Id: Id68fcd8bbbe45a95a294fd557ee4556c2af5c4c2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/430548 Commit-Queue: Samuel Rawlins <[email protected]> Reviewed-by: Konstantin Shcheglov <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]>
1 parent 611d5a8 commit b0b74b2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/analysis_server/lib/src/protocol_server.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ List<T> mapEngineErrors<T>(
112112
T Function(
113113
engine.AnalysisResultWithErrors result,
114114
engine.Diagnostic diagnostic, [
115-
engine.DiagnosticSeverity errorSeverity,
115+
engine.DiagnosticSeverity severity,
116116
])
117117
constructor,
118118
) {

pkg/analyzer_cli/lib/src/analyzer_impl.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class AnalyzerImpl {
116116
}
117117

118118
/// Returns the maximal [DiagnosticSeverity] of the recorded diagnostics.
119-
DiagnosticSeverity computeMaxErrorSeverity() {
119+
DiagnosticSeverity computeMaxSeverity() {
120120
var status = DiagnosticSeverity.NONE;
121121
for (var result in errorsResults) {
122122
for (var error in result.errors) {
@@ -180,7 +180,7 @@ class AnalyzerImpl {
180180
}
181181

182182
// Compute and return max severity.
183-
return computeMaxErrorSeverity();
183+
return computeMaxSeverity();
184184
}
185185

186186
DiagnosticSeverity? _defaultSeverityProcessor(Diagnostic diagnostic) =>

0 commit comments

Comments
 (0)