Skip to content

Commit 021c397

Browse files
authored
Start using analyzer 7.2.0 (#3966)
1 parent 0054a2b commit 021c397

File tree

6 files changed

+37
-30
lines changed

6 files changed

+37
-30
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## 8.3.3-wip
22

33
* Require Dart 3.6 or later.
4+
* Require analyzer 7.2.0 APIs.
45

56
## 8.3.2
67

lib/src/generator/templates.runtime_renderers.dart

Lines changed: 32 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -25637,7 +25637,6 @@ const _invisibleGetters = {
2563725637
'accessibleExtensions',
2563825638
'accessors',
2563925639
'classes',
25640-
'enclosingElement',
2564125640
'enclosingElement3',
2564225641
'enums',
2564325642
'extensionTypes',
@@ -25667,7 +25666,6 @@ const _invisibleGetters = {
2566725666
'augmentationTarget',
2566825667
'declaration',
2566925668
'displayName',
25670-
'enclosingElement',
2567125669
'enclosingElement3',
2567225670
'hashCode',
2567325671
'isConst',
@@ -25694,7 +25692,6 @@ const _invisibleGetters = {
2569425692
'DartType': {
2569525693
'alias',
2569625694
'element',
25697-
'element2',
2569825695
'element3',
2569925696
'extensionTypeErasure',
2570025697
'hashCode',
@@ -25718,8 +25715,6 @@ const _invisibleGetters = {
2571825715
'isDartCoreString',
2571925716
'isDartCoreSymbol',
2572025717
'isDartCoreType',
25721-
'isDynamic',
25722-
'isVoid',
2572325718
'name',
2572425719
'nullabilitySuffix',
2572525720
'runtimeType',
@@ -25784,7 +25779,6 @@ const _invisibleGetters = {
2578425779
'declaration',
2578525780
'displayName',
2578625781
'documentationComment',
25787-
'enclosingElement',
2578825782
'enclosingElement3',
2578925783
'hasAlwaysThrows',
2579025784
'hasDeprecated',
@@ -25846,10 +25840,10 @@ const _invisibleGetters = {
2584625840
'declaration',
2584725841
'displayName',
2584825842
'documentationComment',
25849-
'enclosingElement',
2585025843
'enclosingElement2',
2585125844
'enclosingElement3',
2585225845
'formalParameters',
25846+
'fragments',
2585325847
'hasAlwaysThrows',
2585425848
'hasDeprecated',
2585525849
'hasDoNotStore',
@@ -25899,6 +25893,7 @@ const _invisibleGetters = {
2589925893
'librarySource',
2590025894
'location',
2590125895
'metadata',
25896+
'metadata2',
2590225897
'name',
2590325898
'nameLength',
2590425899
'nameOffset',
@@ -25945,13 +25940,7 @@ const _invisibleGetters = {
2594525940
'isStatic',
2594625941
'runtimeType',
2594725942
},
25948-
'File': {
25949-
'changes',
25950-
'hashCode',
25951-
'lengthSync',
25952-
'modificationStamp',
25953-
'runtimeType',
25954-
},
25943+
'File': {'hashCode', 'lengthSync', 'modificationStamp', 'runtimeType'},
2595525944
'FunctionElement': {
2595625945
'augmentation',
2595725946
'augmentationTarget',
@@ -25962,17 +25951,17 @@ const _invisibleGetters = {
2596225951
},
2596325952
'FunctionType': {
2596425953
'element',
25965-
'element2',
2596625954
'formalParameters',
2596725955
'hashCode',
2596825956
'namedParameterTypes',
25969-
'normalParameterNames',
2597025957
'normalParameterTypes',
25971-
'optionalParameterNames',
2597225958
'optionalParameterTypes',
2597325959
'parameters',
25960+
'positionalParameterTypes',
25961+
'requiredPositionalParameterCount',
2597425962
'returnType',
2597525963
'runtimeType',
25964+
'sortedNamedParameters',
2597625965
'typeFormals',
2597725966
'typeParameters',
2597825967
},
@@ -26061,23 +26050,28 @@ const _invisibleGetters = {
2606126050
},
2606226051
'Kind': {'hashCode', 'index', 'runtimeType'},
2606326052
'LibraryElement': {
26053+
'definingCompilationUnit',
2606426054
'enclosingElement3',
2606526055
'entryPoint',
2606626056
'exportNamespace',
2606726057
'exportedLibraries',
26058+
'featureSet',
2606826059
'hashCode',
2606926060
'identifier',
2607026061
'importedLibraries',
26071-
'isBrowserApplication',
2607226062
'isDartAsync',
2607326063
'isDartCore',
2607426064
'isInSdk',
26065+
'languageVersion',
26066+
'library',
2607526067
'loadLibraryFunction',
2607626068
'name',
26077-
'parts',
2607826069
'publicNamespace',
2607926070
'runtimeType',
26071+
'session',
2608026072
'topLevelElements',
26073+
'typeProvider',
26074+
'typeSystem',
2608126075
'units',
2608226076
},
2608326077
'LibraryElement2': {
@@ -26091,7 +26085,6 @@ const _invisibleGetters = {
2609126085
'featureSet',
2609226086
'firstFragment',
2609326087
'fragments',
26094-
'functions',
2609526088
'getters',
2609626089
'hashCode',
2609726090
'identifier',
@@ -26104,11 +26097,14 @@ const _invisibleGetters = {
2610426097
'mixins',
2610526098
'publicNamespace',
2610626099
'runtimeType',
26100+
'session',
2610726101
'setters',
26102+
'topLevelFunctions',
2610826103
'topLevelVariables',
2610926104
'typeAliases',
2611026105
'typeProvider',
2611126106
'typeSystem',
26107+
'uri',
2611226108
},
2611326109
'List': {'hashCode', 'length', 'reversed', 'runtimeType'},
2611426110
'Locatable': {
@@ -26136,7 +26132,6 @@ const _invisibleGetters = {
2613626132
'declaration',
2613726133
'displayName',
2613826134
'documentationComment',
26139-
'enclosingElement',
2614026135
'enclosingElement3',
2614126136
'hasAlwaysThrows',
2614226137
'hasDeprecated',
@@ -26175,6 +26170,7 @@ const _invisibleGetters = {
2617526170
'librarySource',
2617626171
'location',
2617726172
'metadata',
26173+
'metadata2',
2617826174
'name',
2617926175
'nameLength',
2618026176
'nameOffset',
@@ -26280,15 +26276,20 @@ const _invisibleGetters = {
2628026276
},
2628126277
'ParameterMember': {
2628226278
'augmentationSubstitution',
26279+
'baseElement',
2628326280
'children',
26281+
'children2',
2628426282
'context',
2628526283
'declaration',
2628626284
'defaultValueCode',
2628726285
'displayName',
2628826286
'documentationComment',
2628926287
'element',
26290-
'enclosingElement',
26288+
'enclosingElement2',
2629126289
'enclosingElement3',
26290+
'firstFragment',
26291+
'formalParameters',
26292+
'fragments',
2629226293
'hasAlwaysThrows',
2629326294
'hasDefaultValue',
2629426295
'hasDeprecated',
@@ -26333,13 +26334,19 @@ const _invisibleGetters = {
2633326334
'isSynthetic',
2633426335
'kind',
2633526336
'library',
26337+
'library2',
2633626338
'librarySource',
2633726339
'location',
26340+
'lookupName',
2633826341
'metadata',
26342+
'metadata2',
2633926343
'name',
26344+
'name3',
2634026345
'nameLength',
2634126346
'nameOffset',
26347+
'nameShared',
2634226348
'nonSynthetic',
26349+
'nonSynthetic2',
2634326350
'parameterKind',
2634426351
'parameters',
2634526352
'runtimeType',
@@ -26349,6 +26356,8 @@ const _invisibleGetters = {
2634926356
'substitution',
2635026357
'type',
2635126358
'typeParameters',
26359+
'typeParameters2',
26360+
'typeShared',
2635226361
},
2635326362
'ParameterizedType': {'hashCode', 'runtimeType', 'typeArguments'},
2635426363
'PropertyAccessorElement': {
@@ -26357,13 +26366,11 @@ const _invisibleGetters = {
2635726366
'correspondingGetter',
2635826367
'correspondingSetter',
2635926368
'declaration',
26360-
'enclosingElement',
2636126369
'enclosingElement3',
2636226370
'hashCode',
2636326371
'isGetter',
2636426372
'isSetter',
2636526373
'runtimeType',
26366-
'variable',
2636726374
'variable2',
2636826375
},
2636926376
'Scope': {'hashCode', 'runtimeType'},
@@ -26388,7 +26395,6 @@ const _invisibleGetters = {
2638826395
'TypeAliasElement': {
2638926396
'aliasedElement',
2639026397
'aliasedType',
26391-
'enclosingElement',
2639226398
'enclosingElement3',
2639326399
'hashCode',
2639426400
'isAugmentation',
@@ -26400,8 +26406,8 @@ const _invisibleGetters = {
2640026406
'aliasedType',
2640126407
'enclosingElement2',
2640226408
'firstFragment',
26409+
'fragments',
2640326410
'hashCode',
26404-
'name',
2640526411
'runtimeType',
2640626412
},
2640726413
'TypeParameterElement': {

lib/src/model/typedef.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ abstract class Typedef extends ModelElement
1919
@override
2020
final TypeAliasElement element;
2121

22-
TypeAliasElement2 get element2 => element.asElement2 as TypeAliasElement2;
22+
TypeAliasElement2 get element2 => element.asElement2;
2323

2424
Typedef(this.element, super.library, super.packageGraph);
2525

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ environment:
77
sdk: ^3.6.0
88

99
dependencies:
10-
analyzer: ^6.10.0
10+
analyzer: ^7.2.0
1111
args: ^2.4.1
1212
collection: ^1.17.0
1313
crypto: ^3.0.3

tool/mustachio/codegen_runtime_renderer.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ import '${path.basename(_sourceUri.path)}';
131131
/// Adds type specified in [spec] to the [_typesToProcess] queue, as well as
132132
/// all supertypes, and the types of all valid getters, recursively.
133133
void _addTypesForRendererSpec(RendererSpec spec) {
134-
var element = spec.contextElement.asElement as InterfaceElement;
134+
var element = spec.contextElement.asElement;
135135
var rendererInfo = _RendererInfo(element,
136136
public: _rendererClassesArePublic, publicApiFunctionName: spec.name);
137137
_typesToProcess.add(rendererInfo);

tool/task.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ Rebuild them with "dart tool/task.dart build" and check the results in.
862862
bool get _analyzerInUseIsTarget {
863863
// TODO(srawlins): Add validation that this number falls within the
864864
// constraints of the analyzer package which are set in `pubspec.yaml`.
865-
const analyzerTarget = '6.11.0';
865+
const analyzerTarget = '7.2.0';
866866

867867
var lockfilePath = path.join(Directory.current.path, 'pubspec.lock');
868868
var lockfile = loadYaml(File(lockfilePath).readAsStringSync()) as YamlMap;

0 commit comments

Comments
 (0)