Skip to content

Commit 4b7b565

Browse files
author
Dart CI
committed
Version 3.10.0-79.0.dev
Merge 93725ad into dev
2 parents c48772a + 93725ad commit 4b7b565

20 files changed

+1756
-1215
lines changed

DEPS

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,24 +133,24 @@ vars = {
133133
# EOL comment after a dependency to instead pin at the current revision.
134134
"ai_rev": "72a9283b421e5ee85c089822ddf6735aade849da",
135135
"core_rev": "b59ecf4ceebe6153e1c0166b7c9a7fdd9458a89d",
136-
"dartdoc_rev": "414953ed17ea534078f26a8526909ab014c1ad09",
137-
"ecosystem_rev": "2fe3618849cbcfcb798e4e001f042423b602e549",
136+
"dartdoc_rev": "82b48b53128a474221269a05a947bae28e2d7ac6",
137+
"ecosystem_rev": "4543c38a67919958539dec8366d8c9414179741f",
138138
"flute_rev": "d5adc4d6439572db5da71a9261b9bf0c7c96daa4",
139139
"http_rev": "afda3102b7ed5467f435b9ad4a29a1032f195156",
140-
"i18n_rev": "c45e050426bdeaaa120e5ce856abb486863d0476",
140+
"i18n_rev": "25cdb1b44b18544e0c988cc1734adc4810a65099",
141141
"leak_tracker_rev": "f5620600a5ce1c44f65ddaa02001e200b096e14c", # rolled manually
142142
"material_color_utilities_rev": "799b6ba2f3f1c28c67cc7e0b4f18e0c7d7f3c03e",
143143
"native_rev": "16ae2d8619e23fc2bd83fbff087a26ac032a1145", # rolled manually while native assets are experimental
144144
"protobuf_rev": "0b73b0d64c15e34d35f6e5f9036aac52e4a64033",
145145
"pub_rev": "c3e50919d11896f014cb971e1776d00a0e2d18b3", # rolled manually
146-
"shelf_rev": "082d3ac2d13a98700d8148e8fad8f3e12a6fd0e1",
146+
"shelf_rev": "2a46b4ffe1f095909c3b14bdf62da40cbdbd82e9",
147147
"sync_http_rev": "c07f96f89a7eec7e3daac641fa6c587224fcfbaa",
148148
"tar_rev": "5a1ea943e70cdf3fa5e1102cdbb9418bd9b4b81a",
149-
"test_rev": "5aef9719ad9b598260c062b2a90a50d2f50a78f3",
150-
"tools_rev": "5e977d6f0698a220279a50538c89a440d56b0c44",
149+
"test_rev": "5aef9719ad9b598260c062b2a90a50d2f50a78f3", # https://dart-review.googlesource.com/c/sdk/+/444360
150+
"tools_rev": "1b52e89e0b4ef70e004383c1cf781ad4182f380b",
151151
"vector_math_rev": "3939545edc38ed657381381d33acde02c49ff827",
152-
"web_rev": "1d5771b74a97f8d59375daa3029617ce2cd1bae8",
153-
"webdev_rev": "7ff2d0795727402c7658ea8ee026884b023099d8",
152+
"web_rev": "f3c960f57cd88afad6e20d80ed453d722d3610b7",
153+
"webdev_rev": "94c172cc862d0c39c72158c6537f1e20b4432e0e",
154154
"webdriver_rev": "595649d890f69b9d05a596426ca93681b1921132",
155155
"webkit_inspection_protocol_rev": "effa75205516757795683d527c3dea9546eb0c32",
156156

pkg/analysis_server/lib/src/services/correction/dart/create_method_or_function.dart

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ class CreateMethodOrFunction extends ResolvedCorrectionProducer {
2727

2828
factory CreateMethodOrFunction({required CorrectionProducerContext context}) {
2929
if (context is StubCorrectionProducerContext) {
30-
return CreateMethodOrFunction._(context: context);
30+
return CreateMethodOrFunction._(
31+
context: context,
32+
fixKind: DartFixKind.CREATE_FUNCTION_TEAROFF,
33+
);
3134
}
3235

3336
if (context.node case SimpleIdentifier node) {
@@ -54,18 +57,21 @@ class CreateMethodOrFunction extends ResolvedCorrectionProducer {
5457
targetElement: targetElement,
5558
fixKind:
5659
targetElement is InterfaceElement
57-
? DartFixKind.CREATE_METHOD
58-
: DartFixKind.CREATE_FUNCTION,
60+
? DartFixKind.CREATE_METHOD_TEAROFF
61+
: DartFixKind.CREATE_FUNCTION_TEAROFF,
5962
);
6063
}
6164

62-
return CreateMethodOrFunction._(context: context);
65+
return CreateMethodOrFunction._(
66+
context: context,
67+
fixKind: DartFixKind.CREATE_FUNCTION_TEAROFF,
68+
);
6369
}
6470

6571
CreateMethodOrFunction._({
6672
required super.context,
6773
Element? targetElement,
68-
this.fixKind = DartFixKind.CREATE_METHOD,
74+
required this.fixKind,
6975
}) : _targetElement = targetElement;
7076

7177
@override

pkg/analysis_server/lib/src/services/correction/error_fix_status.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3478,6 +3478,8 @@ WarningCode.DEPRECATED_MIXIN_FUNCTION:
34783478
The fix is to remove `Function` from where it's referenced.
34793479
WarningCode.DEPRECATED_NEW_IN_COMMENT_REFERENCE:
34803480
status: hasFix
3481+
WarningCode.DEPRECATED_SUBCLASS:
3482+
status: hasFix
34813483
WarningCode.DOC_DIRECTIVE_ARGUMENT_WRONG_FORMAT:
34823484
status: noFix
34833485
WarningCode.DOC_DIRECTIVE_HAS_EXTRA_ARGUMENTS:
@@ -3561,6 +3563,9 @@ WarningCode.INVALID_DEPRECATED_EXTEND_ANNOTATION:
35613563
WarningCode.INVALID_DEPRECATED_IMPLEMENT_ANNOTATION:
35623564
status: needsFix
35633565
notes: The fix is to remove the annotation.
3566+
WarningCode.INVALID_DEPRECATED_SUBCLASS_ANNOTATION:
3567+
status: needsFix
3568+
notes: The fix is to remove the annotation.
35643569
WarningCode.INVALID_EXPORT_OF_INTERNAL_ELEMENT:
35653570
status: needsFix
35663571
notes: |-

pkg/analysis_server/lib/src/services/correction/fix.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,11 @@ abstract final class DartFixKind {
808808
DartFixKindPriority.standard - 1,
809809
"Create function '{0}'",
810810
);
811+
static const CREATE_FUNCTION_TEAROFF = FixKind(
812+
'dart.fix.create.function.tearoff',
813+
DartFixKindPriority.standard - 1,
814+
"Create function '{0}'",
815+
);
811816
static const CREATE_GETTER = FixKind(
812817
'dart.fix.create.getter',
813818
DartFixKindPriority.standard,
@@ -823,6 +828,11 @@ abstract final class DartFixKind {
823828
DartFixKindPriority.standard,
824829
"Create method '{0}'",
825830
);
831+
static const CREATE_METHOD_TEAROFF = FixKind(
832+
'dart.fix.create.method.tearoff',
833+
DartFixKindPriority.standard,
834+
"Create method '{0}'",
835+
);
826836

827837
// TODO(pq): used by LintNames.hash_and_equals; consider removing.
828838
static const CREATE_METHOD_MULTI = FixKind(

pkg/analysis_server/lib/src/services/correction/fix_internal.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,6 +1206,7 @@ final _builtInNonLintGenerators = <DiagnosticCode, List<ProducerGenerator>>{
12061206
WarningCode.DEPRECATED_NEW_IN_COMMENT_REFERENCE: [
12071207
RemoveDeprecatedNewInCommentReference.new,
12081208
],
1209+
WarningCode.DEPRECATED_SUBCLASS: [RemoveNameFromDeclarationClause.new],
12091210
WarningCode.DUPLICATE_HIDDEN_NAME: [RemoveNameFromCombinator.new],
12101211
WarningCode.DUPLICATE_IMPORT: [RemoveUnusedImport.new],
12111212
WarningCode.DUPLICATE_SHOWN_NAME: [RemoveNameFromCombinator.new],

0 commit comments

Comments
 (0)