Skip to content

Commit 549cc20

Browse files
bwilkersonCommit Queue
authored and
Commit Queue
committed
Add explicit indicators for diagnostics that are missing documentation
I believe that this will make it easier to identify which diagnostics are undocumented (though I haven't done this for parser-produced diagnostics). It will also allow us to easily count how many there are in order to monitor progress / regress. I also normalized the location of the flag to make the file a little cleaner. Change-Id: I4fe07f446508788a8c02efcd8e78e94689ffb40b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/365283 Reviewed-by: Samuel Rawlins <[email protected]> Commit-Queue: Brian Wilkerson <[email protected]>
1 parent 95d96cf commit 549cc20

File tree

2 files changed

+220
-74
lines changed

2 files changed

+220
-74
lines changed

pkg/analyzer/lib/src/error/codes.g.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ class CompileTimeErrorCode extends AnalyzerErrorCode {
267267
'AUGMENTATION_WITHOUT_LIBRARY',
268268
"The URI does not resolve to a library.",
269269
correctionMessage:
270-
"Try updating the URI to reference the augmented library",
270+
"Try updating the URI to reference the augmented library.",
271271
);
272272

273273
/// No parameters.
@@ -2128,10 +2128,10 @@ class CompileTimeErrorCode extends AnalyzerErrorCode {
21282128
static const CompileTimeErrorCode GENERIC_FUNCTION_TYPE_CANNOT_BE_BOUND =
21292129
CompileTimeErrorCode(
21302130
'GENERIC_FUNCTION_TYPE_CANNOT_BE_BOUND',
2131-
"Generic function types can't be used as type parameter bounds",
2131+
"Generic function types can't be used as type parameter bounds.",
21322132
correctionMessage:
21332133
"Try making the free variable in the function type part of the larger "
2134-
"declaration signature",
2134+
"declaration signature.",
21352135
);
21362136

21372137
/// It is a compile-time error if a generic function type is used as an actual

0 commit comments

Comments
 (0)