Skip to content

Commit 58b2ecb

Browse files
parloughCommit Queue
authored andcommitted
[analyzer] Mark a few recent diagnostic docs as published
Change-Id: I6f3410183dfb32a6378fcd4c8270b726d6eaf754 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/445760 Reviewed-by: Brian Wilkerson <[email protected]> Reviewed-by: Samuel Rawlins <[email protected]> Reviewed-by: Paul Berry <[email protected]> Commit-Queue: Paul Berry <[email protected]>
1 parent 6957507 commit 58b2ecb

File tree

4 files changed

+28
-14
lines changed

4 files changed

+28
-14
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ class FfiCode extends DiagnosticCode {
7575
'ADDRESS_POSITION',
7676
"The '.address' expression can only be used as argument to a leaf native "
7777
"external call.",
78+
hasPublishedDocs: true,
7879
);
7980

8081
/// No parameters.
@@ -85,6 +86,7 @@ class FfiCode extends DiagnosticCode {
8586
"Union field.",
8687
correctionMessage:
8788
"Change the receiver of '.address' to one of the allowed kinds.",
89+
hasPublishedDocs: true,
8890
);
8991

9092
/// No parameters.
@@ -191,6 +193,7 @@ class FfiCode extends DiagnosticCode {
191193
'FFI_NATIVE_ONLY_CLASSES_EXTENDING_NATIVEFIELDWRAPPERCLASS1_CAN_BE_POINTER',
192194
"Only classes extending NativeFieldWrapperClass1 can be passed as Pointer.",
193195
correctionMessage: "Pass as Handle instead.",
196+
hasPublishedDocs: true,
194197
);
195198

196199
/// Parameters:

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6461,6 +6461,7 @@ class WarningCode extends DiagnosticCode {
64616461
'DEPRECATED_EXTEND',
64626462
"Extending '{0}' is deprecated.",
64636463
correctionMessage: "Try removing the 'extends' clause.",
6464+
hasPublishedDocs: true,
64646465
);
64656466

64666467
/// No parameters.
@@ -6478,6 +6479,7 @@ class WarningCode extends DiagnosticCode {
64786479
'DEPRECATED_IMPLEMENT',
64796480
"Implementing '{0}' is deprecated.",
64806481
correctionMessage: "Try removing '{0}' from the 'implements' clause.",
6482+
hasPublishedDocs: true,
64816483
);
64826484

64836485
/// No parameters.
@@ -6495,6 +6497,7 @@ class WarningCode extends DiagnosticCode {
64956497
'DEPRECATED_INSTANTIATE',
64966498
"Instantiating '{0}' is deprecated.",
64976499
correctionMessage: "Try instantiating a non-abstract class.",
6500+
hasPublishedDocs: true,
64986501
);
64996502

65006503
/// No parameters.
@@ -6522,6 +6525,7 @@ class WarningCode extends DiagnosticCode {
65226525
correctionMessage:
65236526
"Try removing the 'extends' clause, or removing '{0}' from the "
65246527
"'implements' clause.",
6528+
hasPublishedDocs: true,
65256529
);
65266530

65276531
/// Parameters:
@@ -6816,6 +6820,7 @@ class WarningCode extends DiagnosticCode {
68166820
'INVALID_AWAIT_NOT_REQUIRED_ANNOTATION',
68176821
"The annotation 'awaitNotRequired' can only be applied to a "
68186822
"Future-returning function, or a Future-typed field.",
6823+
hasPublishedDocs: true,
68196824
);
68206825

68216826
/// No parameters.
@@ -6824,6 +6829,7 @@ class WarningCode extends DiagnosticCode {
68246829
"The annotation '@Deprecated.extend' can only be applied to extendable "
68256830
"classes.",
68266831
correctionMessage: "Try removing the '@Deprecated.extend' annotation.",
6832+
hasPublishedDocs: true,
68276833
);
68286834

68296835
/// No parameters.
@@ -6832,13 +6838,15 @@ class WarningCode extends DiagnosticCode {
68326838
"The annotation '@Deprecated.implement' can only be applied to "
68336839
"implementable classes.",
68346840
correctionMessage: "Try removing the '@Deprecated.implement' annotation.",
6841+
hasPublishedDocs: true,
68356842
);
68366843

68376844
/// No parameters.
68386845
static const WarningCode invalidDeprecatedInstantiateAnnotation = WarningCode(
68396846
'INVALID_DEPRECATED_INSTANTIATE_ANNOTATION',
68406847
"The annotation '@Deprecated.instantiate' can only be applied to classes.",
68416848
correctionMessage: "Try removing the '@Deprecated.instantiate' annotation.",
6849+
hasPublishedDocs: true,
68426850
);
68436851

68446852
/// No parameters.
@@ -6847,6 +6855,7 @@ class WarningCode extends DiagnosticCode {
68476855
"The annotation '@Deprecated.subclass' can only be applied to subclassable "
68486856
"classes and mixins.",
68496857
correctionMessage: "Try removing the '@Deprecated.subclass' annotation.",
6858+
hasPublishedDocs: true,
68506859
);
68516860

68526861
/// Parameters:

pkg/analyzer/lib/src/pubspec/pubspec_warning_code.g.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,13 +229,15 @@ class PubspecWarningCode extends DiagnosticCode {
229229
"file paths.",
230230
correctionMessage:
231231
"Try converting the value to be a list of relative file paths.",
232+
hasPublishedDocs: true,
232233
);
233234

234235
/// No parameters.
235236
static const PubspecWarningCode workspaceValueNotString = PubspecWarningCode(
236237
'WORKSPACE_VALUE_NOT_STRING',
237238
"Workspace entries are required to be directory paths (strings).",
238239
correctionMessage: "Try converting the value to be a string.",
240+
hasPublishedDocs: true,
239241
);
240242

241243
/// Parameters:

pkg/analyzer/messages.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18733,7 +18733,7 @@ FfiCode:
1873318733
ADDRESS_POSITION:
1873418734
parameters: none
1873518735
problemMessage: "The '.address' expression can only be used as argument to a leaf native external call."
18736-
hasPublishedDocs: false
18736+
hasPublishedDocs: true
1873718737
documentation: |-
1873818738
#### Description
1873918739

@@ -18785,7 +18785,7 @@ FfiCode:
1878518785
parameters: none
1878618786
problemMessage: "The receiver of '.address' must be a concrete 'TypedData', a concrete 'TypedData' '[]', an 'Array', an 'Array' '[]', a Struct field, or a Union field."
1878718787
correctionMessage: Change the receiver of '.address' to one of the allowed kinds.
18788-
hasPublishedDocs: false
18788+
hasPublishedDocs: true
1878918789
documentation: |-
1879018790
#### Description
1879118791

@@ -19498,7 +19498,7 @@ FfiCode:
1949819498
parameters: none
1949919499
problemMessage: Only classes extending NativeFieldWrapperClass1 can be passed as Pointer.
1950019500
correctionMessage: Pass as Handle instead.
19501-
hasPublishedDocs: false
19501+
hasPublishedDocs: true
1950219502
documentation: |-
1950319503
#### Description
1950419504

@@ -22713,7 +22713,7 @@ PubspecWarningCode:
2271322713
parameters: none
2271422714
problemMessage: "The value of the 'workspace' field is required to be a list of relative file paths."
2271522715
correctionMessage: Try converting the value to be a list of relative file paths.
22716-
hasPublishedDocs: false
22716+
hasPublishedDocs: true
2271722717
documentation: |-
2271822718
#### Description
2271922719

@@ -22747,7 +22747,7 @@ PubspecWarningCode:
2274722747
parameters: none
2274822748
problemMessage: Workspace entries are required to be directory paths (strings).
2274922749
correctionMessage: Try converting the value to be a string.
22750-
hasPublishedDocs: false
22750+
hasPublishedDocs: true
2275122751
documentation: |-
2275222752
#### Description
2275322753

@@ -23905,7 +23905,7 @@ WarningCode:
2390523905
Object p0: the name of the member
2390623906
problemMessage: "Extending '#p0' is deprecated."
2390723907
correctionMessage: Try removing the 'extends' clause.
23908-
hasPublishedDocs: false
23908+
hasPublishedDocs: true
2390923909
documentation: |-
2391023910
#### Description
2391123911

@@ -23980,7 +23980,7 @@ WarningCode:
2398023980
Object p0: the name of the member
2398123981
problemMessage: "Implementing '#p0' is deprecated."
2398223982
correctionMessage: Try removing '#p0' from the 'implements' clause.
23983-
hasPublishedDocs: false
23983+
hasPublishedDocs: true
2398423984
documentation: |-
2398523985
#### Description
2398623986

@@ -24029,7 +24029,7 @@ WarningCode:
2402924029
Object p0: the name of the member
2403024030
problemMessage: "Instantiating '#p0' is deprecated."
2403124031
correctionMessage: Try instantiating a non-abstract class.
24032-
hasPublishedDocs: false
24032+
hasPublishedDocs: true
2403324033
documentation: |-
2403424034
#### Description
2403524035

@@ -24126,7 +24126,7 @@ WarningCode:
2412624126
Object p0: the name of the member
2412724127
problemMessage: "Subclassing '#p0' is deprecated."
2412824128
correctionMessage: Try removing the 'extends' clause, or removing '#p0' from the 'implements' clause.
24129-
hasPublishedDocs: false
24129+
hasPublishedDocs: true
2413024130
documentation: |-
2413124131
#### Description
2413224132

@@ -24943,7 +24943,7 @@ WarningCode:
2494324943
INVALID_AWAIT_NOT_REQUIRED_ANNOTATION:
2494424944
parameters: none
2494524945
problemMessage: "The annotation 'awaitNotRequired' can only be applied to a Future-returning function, or a Future-typed field."
24946-
hasPublishedDocs: false
24946+
hasPublishedDocs: true
2494724947
documentation: |-
2494824948
#### Description
2494924949

@@ -24974,7 +24974,7 @@ WarningCode:
2497424974
parameters: none
2497524975
problemMessage: "The annotation '@Deprecated.extend' can only be applied to extendable classes."
2497624976
correctionMessage: Try removing the '@Deprecated.extend' annotation.
24977-
hasPublishedDocs: false
24977+
hasPublishedDocs: true
2497824978
# TODO(srawlins): link Deprecated.extend below with:
2497924979
# [`Deprecated.extend`][meta-deprecated-extend]
2498024980
documentation: |-
@@ -25007,7 +25007,7 @@ WarningCode:
2500725007
parameters: none
2500825008
problemMessage: "The annotation '@Deprecated.implement' can only be applied to implementable classes."
2500925009
correctionMessage: Try removing the '@Deprecated.implement' annotation.
25010-
hasPublishedDocs: false
25010+
hasPublishedDocs: true
2501125011
# TODO(srawlins): link Deprecated.implement below with:
2501225012
# [`Deprecated.implement`][meta-deprecated-implement]
2501325013
documentation: |-
@@ -25040,7 +25040,7 @@ WarningCode:
2504025040
parameters: none
2504125041
problemMessage: "The annotation '@Deprecated.instantiate' can only be applied to classes."
2504225042
correctionMessage: Try removing the '@Deprecated.instantiate' annotation.
25043-
hasPublishedDocs: false
25043+
hasPublishedDocs: true
2504425044
documentation: |-
2504525045
#### Description
2504625046

@@ -25070,7 +25070,7 @@ WarningCode:
2507025070
parameters: none
2507125071
problemMessage: "The annotation '@Deprecated.subclass' can only be applied to subclassable classes and mixins."
2507225072
correctionMessage: Try removing the '@Deprecated.subclass' annotation.
25073-
hasPublishedDocs: false
25073+
hasPublishedDocs: true
2507425074
# TODO(srawlins): link Deprecated.subclass below with:
2507525075
# [`Deprecated.subclass`][meta-deprecated-subclass]
2507625076
documentation: |-

0 commit comments

Comments
 (0)