File tree Expand file tree Collapse file tree 4 files changed +21
-7
lines changed
Expand file tree Collapse file tree 4 files changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ include: package:dart_flutter_team_lints/analysis_options.yaml
44analyzer :
55 language :
66 strict-casts : true
7+ errors :
8+ # Analyzer v7.4.0 crazy
9+ deprecated_member_use : ignore
710
811linter :
912 rules :
Original file line number Diff line number Diff line change 1+ ## 6.9.5
2+
3+ - Support the ` analyzer: '>=6.9.0 <8.0.0' ` .
4+ - Fixed use of deprecated analyzer APIs.
5+
16## 6.9.4
27
3- - Fix extra line being generated when targetting Dart 3.7 package.
8+ - Fix extra line being generated when targeting Dart 3.7 package.
49
510## 6.9.3
611
Original file line number Diff line number Diff line change 33// BSD-style license that can be found in the LICENSE file.
44
55import 'package:analyzer/dart/element/element.dart' ;
6+ import 'package:analyzer/src/dart/element/element.dart' // ignore: implementation_imports
7+ show
8+ InterfaceElementImpl;
69import 'package:analyzer/src/dart/element/inheritance_manager3.dart' // ignore: implementation_imports
710 show
811 InheritanceManager3;
@@ -79,15 +82,18 @@ List<FieldElement> createSortedFieldSet(ClassElement element) {
7982 final inheritedFields = < String , FieldElement > {};
8083 final manager = InheritanceManager3 ();
8184
82- for (final v in manager.getInheritedConcreteMap2 (element).values) {
85+ for (final v in manager
86+ .getInheritedConcreteMap2 (element as InterfaceElementImpl )
87+ .values) {
8388 assert (v is ! FieldElement );
8489 if (_dartCoreObjectChecker.isExactly (v.enclosingElement3)) {
8590 continue ;
8691 }
8792
88- if (v is PropertyAccessorElement && v.isGetter) {
89- assert (v.variable is FieldElement );
90- final variable = v.variable as FieldElement ;
93+ if (v is PropertyAccessorElement &&
94+ (v as PropertyAccessorElement ).isGetter) {
95+ assert ((v as PropertyAccessorElement ).variable2 is FieldElement );
96+ final variable = (v as PropertyAccessorElement ).variable2 as FieldElement ;
9197 assert (! inheritedFields.containsKey (variable.name));
9298 inheritedFields[variable.name] = variable;
9399 }
Original file line number Diff line number Diff line change 11name : json_serializable
2- version : 6.9.4
2+ version : 6.9.5
33description : >-
44 Automatically generate code for converting to and from JSON by annotating
55 Dart classes.
@@ -15,7 +15,7 @@ topics:
1515resolution : workspace
1616
1717dependencies :
18- analyzer : " >=6.5 .0 <8.0.0"
18+ analyzer : ' >=6.9 .0 <8.0.0'
1919 async : ^2.10.0
2020 build : ^3.0.0
2121 build_config : ^1.1.0
You can’t perform that action at this time.
0 commit comments