Skip to content

Commit 3fa01b2

Browse files
asashourCommit Bot
authored and
Commit Bot
committed
[analysis_server] Remove ignoring avoid_renaming_method_parameters
Bug: #48785 Change-Id: I089dd5a76bf5c5c5d4e57ecc8ddaabda04866621 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/245361 Reviewed-by: Phil Quitslund <[email protected]> Commit-Queue: Brian Wilkerson <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]> Reviewed-by: Danny Tuppeny <[email protected]>
1 parent 1fbbbf3 commit 3fa01b2

21 files changed

+163
-122
lines changed

pkg/analysis_server/analysis_options.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ analyzer:
1212
# Lints from the recommended set that conflict w/ analyzer style or will
1313
# require some work to reach compliance.
1414
# See: https://github.com/dart-lang/sdk/issues/48785
15-
avoid_renaming_method_parameters: ignore
1615
camel_case_types: ignore
1716
constant_identifier_names: ignore
1817
file_names: ignore

pkg/analysis_server/lib/lsp_protocol/protocol_generated.dart

Lines changed: 69 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -2778,7 +2778,8 @@ class CodeActionKind implements ToJsonable {
27782778
@override
27792779
int get hashCode => _value.hashCode;
27802780

2781-
bool operator ==(Object o) => o is CodeActionKind && o._value == _value;
2781+
bool operator ==(Object other) =>
2782+
other is CodeActionKind && other._value == _value;
27822783
}
27832784

27842785
class CodeActionLiteralSupportCodeActionKind implements ToJsonable {
@@ -3354,8 +3355,8 @@ class CodeActionTriggerKind implements ToJsonable {
33543355
@override
33553356
int get hashCode => _value.hashCode;
33563357

3357-
bool operator ==(Object o) =>
3358-
o is CodeActionTriggerKind && o._value == _value;
3358+
bool operator ==(Object other) =>
3359+
other is CodeActionTriggerKind && other._value == _value;
33593360
}
33603361

33613362
/// Structure to capture a description for an error code.
@@ -6192,7 +6193,8 @@ class CompletionItemKind implements ToJsonable {
61926193
@override
61936194
int get hashCode => _value.hashCode;
61946195

6195-
bool operator ==(Object o) => o is CompletionItemKind && o._value == _value;
6196+
bool operator ==(Object other) =>
6197+
other is CompletionItemKind && other._value == _value;
61966198
}
61976199

61986200
/// Additional details for a completion item label.
@@ -6385,7 +6387,8 @@ class CompletionItemTag implements ToJsonable {
63856387
@override
63866388
int get hashCode => _value.hashCode;
63876389

6388-
bool operator ==(Object o) => o is CompletionItemTag && o._value == _value;
6390+
bool operator ==(Object other) =>
6391+
other is CompletionItemTag && other._value == _value;
63896392
}
63906393

63916394
class CompletionItemTagSupport implements ToJsonable {
@@ -7563,8 +7566,8 @@ class CompletionTriggerKind implements ToJsonable {
75637566
@override
75647567
int get hashCode => _value.hashCode;
75657568

7566-
bool operator ==(Object o) =>
7567-
o is CompletionTriggerKind && o._value == _value;
7569+
bool operator ==(Object other) =>
7570+
other is CompletionTriggerKind && other._value == _value;
75687571
}
75697572

75707573
class ConfigurationItem implements ToJsonable {
@@ -10145,7 +10148,8 @@ class DiagnosticSeverity implements ToJsonable {
1014510148
@override
1014610149
int get hashCode => _value.hashCode;
1014710150

10148-
bool operator ==(Object o) => o is DiagnosticSeverity && o._value == _value;
10151+
bool operator ==(Object other) =>
10152+
other is DiagnosticSeverity && other._value == _value;
1014910153
}
1015010154

1015110155
/// The diagnostic tags.
@@ -10179,7 +10183,8 @@ class DiagnosticTag implements ToJsonable {
1017910183
@override
1018010184
int get hashCode => _value.hashCode;
1018110185

10182-
bool operator ==(Object o) => o is DiagnosticTag && o._value == _value;
10186+
bool operator ==(Object other) =>
10187+
other is DiagnosticTag && other._value == _value;
1018310188
}
1018410189

1018510190
/// Workspace client capabilities specific to diagnostic pull requests.
@@ -12065,8 +12070,8 @@ class DocumentDiagnosticReportKind implements ToJsonable {
1206512070
@override
1206612071
int get hashCode => _value.hashCode;
1206712072

12068-
bool operator ==(Object o) =>
12069-
o is DocumentDiagnosticReportKind && o._value == _value;
12073+
bool operator ==(Object other) =>
12074+
other is DocumentDiagnosticReportKind && other._value == _value;
1207012075
}
1207112076

1207212077
/// A partial result for a document diagnostic report.
@@ -12726,8 +12731,8 @@ class DocumentHighlightKind implements ToJsonable {
1272612731
@override
1272712732
int get hashCode => _value.hashCode;
1272812733

12729-
bool operator ==(Object o) =>
12730-
o is DocumentHighlightKind && o._value == _value;
12734+
bool operator ==(Object other) =>
12735+
other is DocumentHighlightKind && other._value == _value;
1273112736
}
1273212737

1273312738
class DocumentHighlightOptions implements WorkDoneProgressOptions, ToJsonable {
@@ -15514,7 +15519,8 @@ class ErrorCodes implements ToJsonable {
1551415519
@override
1551515520
int get hashCode => _value.hashCode;
1551615521

15517-
bool operator ==(Object o) => o is ErrorCodes && o._value == _value;
15522+
bool operator ==(Object other) =>
15523+
other is ErrorCodes && other._value == _value;
1551815524
}
1551915525

1552015526
class ExecuteCommandClientCapabilities implements ToJsonable {
@@ -16040,7 +16046,8 @@ class FailureHandlingKind implements ToJsonable {
1604016046
@override
1604116047
int get hashCode => _value.hashCode;
1604216048

16043-
bool operator ==(Object o) => o is FailureHandlingKind && o._value == _value;
16049+
bool operator ==(Object other) =>
16050+
other is FailureHandlingKind && other._value == _value;
1604416051
}
1604516052

1604616053
/// The file event type.
@@ -16071,7 +16078,8 @@ class FileChangeType implements ToJsonable {
1607116078
@override
1607216079
int get hashCode => _value.hashCode;
1607316080

16074-
bool operator ==(Object o) => o is FileChangeType && o._value == _value;
16081+
bool operator ==(Object other) =>
16082+
other is FileChangeType && other._value == _value;
1607516083
}
1607616084

1607716085
/// Represents information on a file/folder create.
@@ -16980,8 +16988,8 @@ class FileOperationPatternKind implements ToJsonable {
1698016988
@override
1698116989
int get hashCode => _value.hashCode;
1698216990

16983-
bool operator ==(Object o) =>
16984-
o is FileOperationPatternKind && o._value == _value;
16991+
bool operator ==(Object other) =>
16992+
other is FileOperationPatternKind && other._value == _value;
1698516993
}
1698616994

1698716995
/// Matching options for the file operation pattern.
@@ -17873,7 +17881,8 @@ class FoldingRangeKind implements ToJsonable {
1787317881
@override
1787417882
int get hashCode => _value.hashCode;
1787517883

17876-
bool operator ==(Object o) => o is FoldingRangeKind && o._value == _value;
17884+
bool operator ==(Object other) =>
17885+
other is FoldingRangeKind && other._value == _value;
1787717886
}
1787817887

1787917888
class FoldingRangeOptions implements WorkDoneProgressOptions, ToJsonable {
@@ -20823,7 +20832,8 @@ class InlayHintKind implements ToJsonable {
2082320832
@override
2082420833
int get hashCode => _value.hashCode;
2082520834

20826-
bool operator ==(Object o) => o is InlayHintKind && o._value == _value;
20835+
bool operator ==(Object other) =>
20836+
other is InlayHintKind && other._value == _value;
2082720837
}
2082820838

2082920839
/// An inlay hint label part allows for interactive and composite labels of
@@ -22529,7 +22539,8 @@ class InsertTextFormat implements ToJsonable {
2252922539
@override
2253022540
int get hashCode => _value.hashCode;
2253122541

22532-
bool operator ==(Object o) => o is InsertTextFormat && o._value == _value;
22542+
bool operator ==(Object other) =>
22543+
other is InsertTextFormat && other._value == _value;
2253322544
}
2253422545

2253522546
/// How whitespace and indentation is handled during completion item insertion.
@@ -22566,7 +22577,8 @@ class InsertTextMode implements ToJsonable {
2256622577
@override
2256722578
int get hashCode => _value.hashCode;
2256822579

22569-
bool operator ==(Object o) => o is InsertTextMode && o._value == _value;
22580+
bool operator ==(Object other) =>
22581+
other is InsertTextMode && other._value == _value;
2257022582
}
2257122583

2257222584
class LinkedEditingRangeClientCapabilities implements ToJsonable {
@@ -23780,7 +23792,8 @@ class MarkupKind implements ToJsonable {
2378023792
@override
2378123793
int get hashCode => _value.hashCode;
2378223794

23783-
bool operator ==(Object o) => o is MarkupKind && o._value == _value;
23795+
bool operator ==(Object other) =>
23796+
other is MarkupKind && other._value == _value;
2378423797
}
2378523798

2378623799
class MessageActionItem implements ToJsonable {
@@ -23881,7 +23894,8 @@ class MessageType implements ToJsonable {
2388123894
@override
2388223895
int get hashCode => _value.hashCode;
2388323896

23884-
bool operator ==(Object o) => o is MessageType && o._value == _value;
23897+
bool operator ==(Object other) =>
23898+
other is MessageType && other._value == _value;
2388523899
}
2388623900

2388723901
/// Valid LSP methods known at the time of code generation from the spec.
@@ -24207,7 +24221,7 @@ class Method implements ToJsonable {
2420724221
@override
2420824222
int get hashCode => _value.hashCode;
2420924223

24210-
bool operator ==(Object o) => o is Method && o._value == _value;
24224+
bool operator ==(Object other) => other is Method && other._value == _value;
2421124225
}
2421224226

2421324227
/// Moniker definition to match LSIF 0.5 moniker definition.
@@ -24457,7 +24471,8 @@ class MonikerKind implements ToJsonable {
2445724471
@override
2445824472
int get hashCode => _value.hashCode;
2445924473

24460-
bool operator ==(Object o) => o is MonikerKind && o._value == _value;
24474+
bool operator ==(Object other) =>
24475+
other is MonikerKind && other._value == _value;
2446124476
}
2446224477

2446324478
class MonikerOptions implements WorkDoneProgressOptions, ToJsonable {
@@ -25084,7 +25099,8 @@ class NotebookCellKind implements ToJsonable {
2508425099
@override
2508525100
int get hashCode => _value.hashCode;
2508625101

25087-
bool operator ==(Object o) => o is NotebookCellKind && o._value == _value;
25102+
bool operator ==(Object other) =>
25103+
other is NotebookCellKind && other._value == _value;
2508825104
}
2508925105

2509025106
/// A notebook cell text document filter denotes a cell text document by
@@ -27720,7 +27736,8 @@ class PositionEncodingKind implements ToJsonable {
2772027736
@override
2772127737
int get hashCode => _value.hashCode;
2772227738

27723-
bool operator ==(Object o) => o is PositionEncodingKind && o._value == _value;
27739+
bool operator ==(Object other) =>
27740+
other is PositionEncodingKind && other._value == _value;
2772427741
}
2772527742

2772627743
class PrepareRenameParams implements TextDocumentPositionParams, ToJsonable {
@@ -27846,8 +27863,8 @@ class PrepareSupportDefaultBehavior implements ToJsonable {
2784627863
@override
2784727864
int get hashCode => _value.hashCode;
2784827865

27849-
bool operator ==(Object o) =>
27850-
o is PrepareSupportDefaultBehavior && o._value == _value;
27866+
bool operator ==(Object other) =>
27867+
other is PrepareSupportDefaultBehavior && other._value == _value;
2785127868
}
2785227869

2785327870
/// A previous result id in a workspace pull request.
@@ -30646,8 +30663,8 @@ class ResourceOperationKind implements ToJsonable {
3064630663
@override
3064730664
int get hashCode => _value.hashCode;
3064830665

30649-
bool operator ==(Object o) =>
30650-
o is ResourceOperationKind && o._value == _value;
30666+
bool operator ==(Object other) =>
30667+
other is ResourceOperationKind && other._value == _value;
3065130668
}
3065230669

3065330670
class SaveOptions implements ToJsonable {
@@ -31255,8 +31272,8 @@ class SemanticTokenModifiers implements ToJsonable {
3125531272
@override
3125631273
int get hashCode => _value.hashCode;
3125731274

31258-
bool operator ==(Object o) =>
31259-
o is SemanticTokenModifiers && o._value == _value;
31275+
bool operator ==(Object other) =>
31276+
other is SemanticTokenModifiers && other._value == _value;
3126031277
}
3126131278

3126231279
class SemanticTokenTypes implements ToJsonable {
@@ -31303,7 +31320,8 @@ class SemanticTokenTypes implements ToJsonable {
3130331320
@override
3130431321
int get hashCode => _value.hashCode;
3130531322

31306-
bool operator ==(Object o) => o is SemanticTokenTypes && o._value == _value;
31323+
bool operator ==(Object other) =>
31324+
other is SemanticTokenTypes && other._value == _value;
3130731325
}
3130831326

3130931327
class SemanticTokens implements ToJsonable {
@@ -36599,8 +36617,8 @@ class SignatureHelpTriggerKind implements ToJsonable {
3659936617
@override
3660036618
int get hashCode => _value.hashCode;
3660136619

36602-
bool operator ==(Object o) =>
36603-
o is SignatureHelpTriggerKind && o._value == _value;
36620+
bool operator ==(Object other) =>
36621+
other is SignatureHelpTriggerKind && other._value == _value;
3660436622
}
3660536623

3660636624
/// Represents the signature of something callable. A signature can have a
@@ -37200,7 +37218,8 @@ class SymbolKind implements ToJsonable {
3720037218
@override
3720137219
int get hashCode => _value.hashCode;
3720237220

37203-
bool operator ==(Object o) => o is SymbolKind && o._value == _value;
37221+
bool operator ==(Object other) =>
37222+
other is SymbolKind && other._value == _value;
3720437223
}
3720537224

3720637225
/// Symbol tags are extra annotations that tweak the rendering of a symbol.
@@ -37226,7 +37245,8 @@ class SymbolTag implements ToJsonable {
3722637245
@override
3722737246
int get hashCode => _value.hashCode;
3722837247

37229-
bool operator ==(Object o) => o is SymbolTag && o._value == _value;
37248+
bool operator ==(Object other) =>
37249+
other is SymbolTag && other._value == _value;
3723037250
}
3723137251

3723237252
/// Describe options to be used when registering for text document change
@@ -39232,8 +39252,8 @@ class TextDocumentSaveReason implements ToJsonable {
3923239252
@override
3923339253
int get hashCode => _value.hashCode;
3923439254

39235-
bool operator ==(Object o) =>
39236-
o is TextDocumentSaveReason && o._value == _value;
39255+
bool operator ==(Object other) =>
39256+
other is TextDocumentSaveReason && other._value == _value;
3923739257
}
3923839258

3923939259
class TextDocumentSaveRegistrationOptions
@@ -39503,7 +39523,8 @@ class TextDocumentSyncKind implements ToJsonable {
3950339523
@override
3950439524
int get hashCode => _value.hashCode;
3950539525

39506-
bool operator ==(Object o) => o is TextDocumentSyncKind && o._value == _value;
39526+
bool operator ==(Object other) =>
39527+
other is TextDocumentSyncKind && other._value == _value;
3950739528
}
3950839529

3950939530
class TextDocumentSyncOptions implements ToJsonable {
@@ -39802,7 +39823,8 @@ class TokenFormat implements ToJsonable {
3980239823
@override
3980339824
int get hashCode => _value.hashCode;
3980439825

39805-
bool operator ==(Object o) => o is TokenFormat && o._value == _value;
39826+
bool operator ==(Object other) =>
39827+
other is TokenFormat && other._value == _value;
3980639828
}
3980739829

3980839830
class TypeDefinitionClientCapabilities implements ToJsonable {
@@ -41297,7 +41319,8 @@ class UniquenessLevel implements ToJsonable {
4129741319
@override
4129841320
int get hashCode => _value.hashCode;
4129941321

41300-
bool operator ==(Object o) => o is UniquenessLevel && o._value == _value;
41322+
bool operator ==(Object other) =>
41323+
other is UniquenessLevel && other._value == _value;
4130141324
}
4130241325

4130341326
/// General parameters to unregister a capability.
@@ -41708,7 +41731,8 @@ class WatchKind implements ToJsonable {
4170841731
@override
4170941732
int get hashCode => _value.hashCode;
4171041733

41711-
bool operator ==(Object o) => o is WatchKind && o._value == _value;
41734+
bool operator ==(Object other) =>
41735+
other is WatchKind && other._value == _value;
4171241736
}
4171341737

4171441738
/// The parameters send in a will save text document notification.

0 commit comments

Comments
 (0)