Update dependency analyzer to v7 - autoclosed #158
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^4.0.0->^7.0.0Release Notes
dart-lang/sdk (analyzer)
v7.0.0DartType.element2.DartType.isDynamic.DartType.isVoid.DartType.resolveToBound.IfElement.condition.IfStatement.condition.AstNode.getPropertyandAstNode.setProperty.File.createSource(), it violates levels of abstraction.You can get
Sourceinstances fromAnalysisResults.LibraryElement.toLegacyTypeIfOptOut.LibraryElement.toLegacyElementIfOptOut.LibraryElement.isNonNullableByDefault.File.changesandFolder.changes.Resource.parent2.OnClause.ContextBuilder, useAnalysisContextCollection.ContextLocator, useAnalysisContextCollection.ClassOrAugmentationDeclaration..MixinOrAugmentationDeclaration..AnalysisError.TypeSystem.instantiateToBounds2.buildSdkSummary2().FileSource.fileReadMode.ErrorReporter.Comment.isBlock,isDocumentation,isEndOfLine.Element.enclosingElement.PropertyAccessor.variable.LibraryOrAugmentationElement.LibraryElementproperties.enabledPluginNamesandhintfromAnalysisOptions.source_io.dart.lint/Spelunker.source_resource.dart.MultiplyInheritedExecutableElement.AnalyzeFunctionBodiesPredicate.normalParameterNamesandoptionalParameterNamesfromFunctionType.v6.11.0LibraryElement.exportedLibraries.LibraryElement.importedLibraries.v6.10.0LibraryElement.accessibleExtensions, useCompilationUnitElement.accessibleExtensionsinstead.LibraryElement.exportedLibraries.LibraryElement.importedLibraries.LibraryElement.isBrowserApplication.LibraryElement.libraryExports,use
CompilationUnitElement.libraryExportsinstead.LibraryElement.libraryImports,use
CompilationUnitElement.libraryImportsinstead.LibraryElement.prefixes,use
CompilationUnitElement.libraryImportPrefixesinstead.LibraryElement.parts,use
CompilationUnitElement.partsinstead.LibraryElement.scope,use
CompilationUnitElement.scopeinstead.v6.9.0NormalFormalParameternow implementsAnnotatedNode.Element.enclosingElement, useenclosingElement3.v6.8.0AnalysisContextCollection.dispose(). It must be invoked at the end.ContextLocatorandContextBuilder.Use
AnalysisContextCollectioninstead.v6.7.0File.createSource(), it violates levels of abstraction.You can get
Sourceinstances fromAnalysisResults.AnalysisError.v6.6.0src/file_system/file_system.dartfrom
file_system/file_system.dart.package:analyzer/src/source/source_resource.dart,import
package:analyzer/source/file_source.dartinstead.package:analyzer/src/source/source.dart,import
package:analyzer/source/source.dartinstead.v6.5.2macros: '>=0.1.2-0 <0.1.3'.v6.5.1macros: '>=0.1.1-0 <0.1.2'.v6.5.0LibraryElement.toLegacyTypeIfOptOut.LibraryElement.toLegacyElementIfOptOut.LibraryElement.isNonNullableByDefault.InterfaceElement.lookUpGetter,InterfaceElement.lookUpMethod,and
InterfaceElement.lookUpSetter.GeneralizingAstVisitor.visitNamedTypeto invokevisitTypeAnnotation.PropertyInducingElement get variableinPropertyAccessorElement,use
PropertyInducingElement? get variable2instead.The reason for this is that when the property accessor is an augmentation
without the corresponding declaration, there is no corresponding variable.
ExtensionDeclaration.onKeywordandextendedType.Use
ExtensionOnClause? get onClauseinstead.Extension augmentations are not allowed to have
onClause.OnClause, useMixinOnClauseinstead.@doNotSubmit.@mustBeConst.constructor,directive,enumValue, andtypeParameter.AstNode.getPropertyandAstNode.setProperty. Clients who needthe ability to add arbitrary decorations to AST nodes can achieve the same
effect using Dart's built-in
Expando class.
v6.4.1v6.3.03.3.ConstantEvaluator.v6.2.0v6.1.0InstanceElement, a super-interface forInterfaceElementand
ExtensionElement.TypeSystem.greatestLowerBound.v6.0.0declaredElement2from AST.element2from AST.name2from AST.FunctionBody.isPotentiallyMutatedInClosure.extensionName,staticElementfromExtensionOverride.namefromNamedType.v5.13.0InvalidTypeis now used when types or property cannot be resolved.Previously
DynamicTypewas used.v5.12.0DartType.isDynamic, useis DynamicTypeinstead.NamedTypeto useimportPrefixandname2token.The deprecated
namenode is still visited in this version, but will stopin the next major version.
ExtensionOverrideto useimportPrefixandnametoken.The deprecated
extensionNamenode is still visited in this version, butwill stop in the next major version.
AnalysisErrorconstructor, usetmpconstructor,with names formal parameters. Theoretically no clients should use either,
but practically there are two uses currently.
InvalidType, used when a named type cannot be resolved, or aproperty cannot be resolved, etc. Previously
DynamicTypewas used.In the future
DynamicTypewill be used only when specified explicitly,or a property is resolved against a dynamic target. The clients should
prepare by checking also for
InvalidTypein addition toDynamicType.v5.11.1finalKeyword,interfaceKeywordandsealedKeywordofMixinElement. We added them preliminary whileworking on the class modifiers feature, but eventually decided to remove.
https://github.com/dart-lang/sdk/issues/52159es/52159 for details.
v5.11.0@experimentalfrom AST nodes and elements for records and patterns.IfStatement.condition, useexpressioninstead.NamedType.importPrefix,NamedType.name2, andNamedType.element.Deprecated
NamedType.name. CurrentlyIdentifieris an expression, andan expression as a name of a type does not make sense. So, instead we model
it as a name token, the
Elementthat it references, and an optional importlibrary prefix reference.
v5.10.0DartType.isDartCoreType.v5.9.0FunctionBody.isPotentiallyMutatedInClosure, not used by clients.FunctionBody.isPotentiallyMutatedInScopeand pattern assignment.v5.8.0DartType.isVoid, useis VoidTypeinstead.records,patterns, andclass-modifiersfeatures enabled by default.v5.7.1>=2.19.0 <3.0.0to usePathNotFoundExceptionfromdart:io.v5.6.0DartPattern.precedence.v5.5.0RecordPatternFieldtoPatternField.RecordPatternFieldNametoPatternFieldName.v5.4.0v5.3.1collection: ^1.17.0because we useelementAtOrNull.v5.2.0Element.enclosingElement3, useenclosingElementinstead.Directive.element2, useelementinstead.CatchClause.exceptionParameter2, useexceptionParameterinstead.CatchClause.stackTraceParameter2, usestackTraceParameterinstead.DartType.element2, useelementinstead.Element.isAccessibleIn2(), useisAccessibleIn()instead.CompilationUnitElement.enums2, useenumsinstead.CompilationUnitElement.getEnum2(), usegetEnum()instead.CompilationUnitElement.mixins2, usemixinsinstead.LibraryElement.parts2, usepartsinstead.ImportElement.imports2, useimportsinstead.AnalysisDriverForPackageBuild.sdkLibraryUris.buildSdkSummary2(), usebuildSdkSummary()instead.v5.1.0AstNode.name2, usenameinstead.AstNode.declaredElement2, usedeclaredElementinstead.v5.0.0DiagnosticMessage.message.LibraryElement.getImportsWithPrefix().ParameterElement.isNotOptional.DartType.displayName.AnalysisDriver.ClassOrMixinDeclaration.Declaration.declaredElement.Element.enclosingElementandenclosingElement2.ExportElement,ImportElement.NamedCompilationUnitMember.name.Declaration.declaredElement.DartType.element.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.