Skip to content

Commit 823b666

Browse files
srawlinsCommit Queue
authored andcommitted
analyzer: Rename ErrorSeverityTest to DiagnosticSeverityTest
Work towards #60635 Change-Id: I1361a28834cb95a8b7ad9f131132b7b77e888483 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/430547 Reviewed-by: Konstantin Shcheglov <[email protected]> Commit-Queue: Samuel Rawlins <[email protected]>
1 parent 43e0131 commit 823b666

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

pkg/_fe_analyzer_shared/lib/src/base/errors.dart

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ typedef ErrorCode = DiagnosticCode;
2020
///
2121
/// Generally, messages should follow the [Guide for Writing
2222
/// Diagnostics](https://github.com/dart-lang/sdk/blob/main/pkg/front_end/lib/src/base/diagnostics.md).
23-
///
24-
/// Note that this class name, `ErrorCode`, is soft-deprecated in favor of the
25-
/// type alias, `DiagnosticCode`.
2623
@AnalyzerPublicApi(message: 'exported by package:analyzer/error/error.dart')
2724
abstract class DiagnosticCode {
2825
/// Regular expression for identifying positional arguments in error messages.
@@ -139,9 +136,6 @@ typedef ErrorSeverity = DiagnosticSeverity;
139136

140137
/**
141138
* The severity of an [DiagnosticCode].
142-
*
143-
* Note that this class name, `ErrorSeverity`, is soft-deprecated in favor of
144-
* the type alias, [DiagnosticSeverity].
145139
*/
146140
@AnalyzerPublicApi(message: 'exported by package:analyzer/error/error.dart')
147141
class DiagnosticSeverity implements Comparable<DiagnosticSeverity> {

pkg/analyzer/test/generated/all_the_rest_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import 'package:test_reflective_loader/test_reflective_loader.dart';
1515
main() {
1616
defineReflectiveSuite(() {
1717
defineReflectiveTests(DartUriResolverTest);
18-
defineReflectiveTests(ErrorSeverityTest);
18+
defineReflectiveTests(DiagnosticSeverityTest);
1919
defineReflectiveTests(ResolveRelativeUriTest);
2020
});
2121
}
@@ -74,7 +74,7 @@ class DartUriResolverTest extends _SimpleDartSdkTest {
7474
}
7575

7676
@reflectiveTest
77-
class ErrorSeverityTest {
77+
class DiagnosticSeverityTest {
7878
test_max_error_error() async {
7979
expect(
8080
DiagnosticSeverity.ERROR.max(DiagnosticSeverity.ERROR),

0 commit comments

Comments
 (0)