Skip to content

Commit 7b76a0d

Browse files
srawlinsCommit Queue
authored andcommitted
analyzer: update diagnostic parameter names for Deprecated diags
Change-Id: I6cdbbb4e84269c60af61e960f98e88b8724a28e9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/448233 Commit-Queue: Samuel Rawlins <[email protected]> Reviewed-by: Konstantin Shcheglov <[email protected]>
1 parent 9fe67b8 commit 7b76a0d

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10806,9 +10806,9 @@ class WarningCode extends DiagnosticCodeWithExpectedTypes {
1080610806
);
1080710807

1080810808
/// Parameters:
10809-
/// Object p0: the name of the member
10809+
/// Object typeName: the name of the type
1081010810
static const WarningTemplate<
10811-
LocatableDiagnostic Function({required Object p0})
10811+
LocatableDiagnostic Function({required Object typeName})
1081210812
>
1081310813
deprecatedExtend = WarningTemplate(
1081410814
'DEPRECATED_EXTEND',
@@ -10831,9 +10831,9 @@ class WarningCode extends DiagnosticCodeWithExpectedTypes {
1083110831
);
1083210832

1083310833
/// Parameters:
10834-
/// Object p0: the name of the member
10834+
/// Object typeName: the name of the type
1083510835
static const WarningTemplate<
10836-
LocatableDiagnostic Function({required Object p0})
10836+
LocatableDiagnostic Function({required Object typeName})
1083710837
>
1083810838
deprecatedImplement = WarningTemplate(
1083910839
'DEPRECATED_IMPLEMENT',
@@ -10857,9 +10857,9 @@ class WarningCode extends DiagnosticCodeWithExpectedTypes {
1085710857
);
1085810858

1085910859
/// Parameters:
10860-
/// Object p0: the name of the member
10860+
/// Object typeName: the name of the type
1086110861
static const WarningTemplate<
10862-
LocatableDiagnostic Function({required Object p0})
10862+
LocatableDiagnostic Function({required Object typeName})
1086310863
>
1086410864
deprecatedInstantiate = WarningTemplate(
1086510865
'DEPRECATED_INSTANTIATE',
@@ -10905,9 +10905,9 @@ class WarningCode extends DiagnosticCodeWithExpectedTypes {
1090510905
);
1090610906

1090710907
/// Parameters:
10908-
/// Object p0: the name of the member
10908+
/// Object typeName: the name of the type
1090910909
static const WarningTemplate<
10910-
LocatableDiagnostic Function({required Object p0})
10910+
LocatableDiagnostic Function({required Object typeName})
1091110911
>
1091210912
deprecatedSubclass = WarningTemplate(
1091310913
'DEPRECATED_SUBCLASS',
@@ -12964,21 +12964,21 @@ class WarningCode extends DiagnosticCodeWithExpectedTypes {
1296412964
}
1296512965

1296612966
static LocatableDiagnostic _withArgumentsDeprecatedExtend({
12967-
required Object p0,
12967+
required Object typeName,
1296812968
}) {
12969-
return LocatableDiagnosticImpl(deprecatedExtend, [p0]);
12969+
return LocatableDiagnosticImpl(deprecatedExtend, [typeName]);
1297012970
}
1297112971

1297212972
static LocatableDiagnostic _withArgumentsDeprecatedImplement({
12973-
required Object p0,
12973+
required Object typeName,
1297412974
}) {
12975-
return LocatableDiagnosticImpl(deprecatedImplement, [p0]);
12975+
return LocatableDiagnosticImpl(deprecatedImplement, [typeName]);
1297612976
}
1297712977

1297812978
static LocatableDiagnostic _withArgumentsDeprecatedInstantiate({
12979-
required Object p0,
12979+
required Object typeName,
1298012980
}) {
12981-
return LocatableDiagnosticImpl(deprecatedInstantiate, [p0]);
12981+
return LocatableDiagnosticImpl(deprecatedInstantiate, [typeName]);
1298212982
}
1298312983

1298412984
static LocatableDiagnostic _withArgumentsDeprecatedMixin({
@@ -12988,9 +12988,9 @@ class WarningCode extends DiagnosticCodeWithExpectedTypes {
1298812988
}
1298912989

1299012990
static LocatableDiagnostic _withArgumentsDeprecatedSubclass({
12991-
required Object p0,
12991+
required Object typeName,
1299212992
}) {
12993-
return LocatableDiagnosticImpl(deprecatedSubclass, [p0]);
12993+
return LocatableDiagnosticImpl(deprecatedSubclass, [typeName]);
1299412994
}
1299512995

1299612996
static LocatableDiagnostic _withArgumentsDocDirectiveArgumentWrongFormat({

pkg/analyzer/messages.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23929,8 +23929,8 @@ WarningCode:
2392923929
author or contact them directly to find out how to update your code.
2393023930
DEPRECATED_EXTEND:
2393123931
parameters:
23932-
Object p0: the name of the member
23933-
problemMessage: "Extending '#p0' is deprecated."
23932+
Object typeName: the name of the type
23933+
problemMessage: "Extending '#typeName' is deprecated."
2393423934
correctionMessage: Try removing the 'extends' clause.
2393523935
hasPublishedDocs: true
2393623936
documentation: |-
@@ -24004,9 +24004,9 @@ WarningCode:
2400424004
```
2400524005
DEPRECATED_IMPLEMENT:
2400624006
parameters:
24007-
Object p0: the name of the member
24008-
problemMessage: "Implementing '#p0' is deprecated."
24009-
correctionMessage: Try removing '#p0' from the 'implements' clause.
24007+
Object typeName: the name of the type
24008+
problemMessage: "Implementing '#typeName' is deprecated."
24009+
correctionMessage: Try removing '#typeName' from the 'implements' clause.
2401024010
hasPublishedDocs: true
2401124011
documentation: |-
2401224012
#### Description
@@ -24053,8 +24053,8 @@ WarningCode:
2405324053
hasPublishedDocs: true
2405424054
DEPRECATED_INSTANTIATE:
2405524055
parameters:
24056-
Object p0: the name of the member
24057-
problemMessage: "Instantiating '#p0' is deprecated."
24056+
Object typeName: the name of the type
24057+
problemMessage: "Instantiating '#typeName' is deprecated."
2405824058
correctionMessage: Try instantiating a non-abstract class.
2405924059
hasPublishedDocs: true
2406024060
documentation: |-
@@ -24192,9 +24192,9 @@ WarningCode:
2419224192
```
2419324193
DEPRECATED_SUBCLASS:
2419424194
parameters:
24195-
Object p0: the name of the member
24196-
problemMessage: "Subclassing '#p0' is deprecated."
24197-
correctionMessage: Try removing the 'extends' clause, or removing '#p0' from the 'implements' clause.
24195+
Object typeName: the name of the type
24196+
problemMessage: "Subclassing '#typeName' is deprecated."
24197+
correctionMessage: Try removing the 'extends' clause, or removing '#typeName' from the 'implements' clause.
2419824198
hasPublishedDocs: true
2419924199
documentation: |-
2420024200
#### Description

0 commit comments

Comments
 (0)