Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

Commit 7f40f11

Browse files
authored
bump to analyzer 6.2.0 (#4697)
1 parent a1a069c commit 7f40f11

8 files changed

+11
-10
lines changed

Diff for: pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ environment:
1010
sdk: ^3.0.0
1111

1212
dependencies:
13-
analyzer: ^6.1.0
13+
analyzer: ^6.2.0
1414
args: ^2.1.0
1515
collection: ^1.15.0
1616
http: ">=0.13.0 <2.0.0"

Diff for: test/rules/hash_and_equals_test.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ extension type E(Object o) {
4141
}
4242
''', [
4343
// No lint.
44-
// todo(pq): specify compilation error when it's reported.
44+
error(
45+
CompileTimeErrorCode.EXTENSION_TYPE_DECLARES_MEMBER_OF_OBJECT, 45, 2),
4546
]);
4647
}
4748
}

Diff for: test/rules/library_private_types_in_public_api_test.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ extension type E(Object o) {
137137
}
138138
''', [
139139
// No lint.
140-
// todo(pq): add compilation error once reported
140+
error(CompileTimeErrorCode.EXTENSION_TYPE_DECLARES_INSTANCE_FIELD, 47, 1),
141141
]);
142142
}
143143

Diff for: test/rules/prefer_final_fields_test.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ extension type E(Object o) {
2727
int _i = 0;
2828
}
2929
''', [
30-
error(WarningCode.UNUSED_FIELD, 35, 2),
3130
// No Lint.
32-
// todo(pq): add compilation error once reported
31+
error(CompileTimeErrorCode.EXTENSION_TYPE_DECLARES_INSTANCE_FIELD, 35, 2),
32+
error(WarningCode.UNUSED_FIELD, 35, 2),
3333
]);
3434
}
3535

Diff for: test/rules/public_member_api_docs_test.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ extension type E(int i) {
4141
}
4242
''', [
4343
// No lint.
44-
// todo(pq): add compilation error once reported
44+
error(CompileTimeErrorCode.EXTENSION_TYPE_DECLARES_INSTANCE_FIELD, 46, 1),
4545
]);
4646
}
4747

Diff for: test/rules/sort_unnamed_constructors_first_test.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ extension type E(Object o) {
8686
}
8787
''', [
8888
// No lint.
89-
// todo(pq): Add `duplicate_constructor` diagnostic when it is reported.
89+
error(CompileTimeErrorCode.DUPLICATE_CONSTRUCTOR_DEFAULT, 46, 1),
9090
]);
9191
}
9292
}

Diff for: test/rules/unnecessary_constructor_name_test.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ extension type E(int i) {
6969
}
7070
''', [
7171
// No lint.
72-
// Specify `duplicate_constructor` diagnostic once reported.
72+
error(CompileTimeErrorCode.DUPLICATE_CONSTRUCTOR_DEFAULT, 28, 5),
7373
]);
7474
}
7575

Diff for: test/rules/use_late_for_private_fields_and_variables_test.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ extension type E(int i) {
2626
int? _i;
2727
}
2828
''', [
29-
error(WarningCode.UNUSED_FIELD, 33, 2),
3029
// No lint.
31-
// todo(pq): report invalid field diagnostic when it's reported.
30+
error(CompileTimeErrorCode.EXTENSION_TYPE_DECLARES_INSTANCE_FIELD, 33, 2),
31+
error(WarningCode.UNUSED_FIELD, 33, 2),
3232
]);
3333
}
3434

0 commit comments

Comments
 (0)