Skip to content

Commit 70aa3ac

Browse files
committed
Update verify_diagnostics_test after moving to CompileTimeErrorCode.
TBR [email protected] Change-Id: I5a12ca2bfc0853563e2574644b6e74b0456e8629 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155922 Reviewed-by: Konstantin Shcheglov <[email protected]>
1 parent ba92b78 commit 70aa3ac

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pkg/analyzer/test/verify_diagnostics_test.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ class DocumentationValidator {
3838
/// ony include docs that cannot be verified because of missing support in the
3939
/// verifier.
4040
static const List<String> unverifiedDocs = [
41+
// Needs to be able to specify two expected diagnostics.
42+
'CompileTimeErrorCode.AMBIGUOUS_IMPORT',
4143
// Produces two diagnostics when it should only produce one.
4244
'CompileTimeErrorCode.BUILT_IN_IDENTIFIER_AS_TYPE',
4345
// Produces two diagnostics when it should only produce one. We could get
@@ -46,17 +48,15 @@ class DocumentationValidator {
4648
'CompileTimeErrorCode.IMPORT_INTERNAL_LIBRARY',
4749
// Produces two diagnostics when it should only produce one.
4850
'CompileTimeErrorCode.INVALID_URI',
51+
// Produces two diagnostics when it should only produce one.
52+
'CompileTimeErrorCode.INVALID_USE_OF_NULL_VALUE',
4953
// Need a way to make auxiliary files that (a) are not included in the
5054
// generated docs or (b) can be made persistent for fixes.
5155
'CompileTimeErrorCode.PART_OF_NON_PART',
56+
// Produces the diagnostic HintCode.UNUSED_LOCAL_VARIABLE when it shouldn't.
57+
'CompileTimeErrorCode.UNDEFINED_IDENTIFIER_AWAIT',
5258
// The code has been replaced but is not yet removed.
5359
'HintCode.DEPRECATED_MEMBER_USE',
54-
// Needs to be able to specify two expected diagnostics.
55-
'StaticWarningCode.AMBIGUOUS_IMPORT',
56-
// Produces two diagnostics when it should only produce one.
57-
'StaticWarningCode.INVALID_USE_OF_NULL_VALUE',
58-
// Produces the diagnostic HintCode.UNUSED_LOCAL_VARIABLE when it shouldn't.
59-
'StaticWarningCode.UNDEFINED_IDENTIFIER_AWAIT',
6060
];
6161

6262
/// The prefix used on directive lines to specify the experiments that should

0 commit comments

Comments
 (0)