fix(deps): update dependency analyzer to v7 #5
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.1.0
->^7.0.0
Release Notes
dart-lang/sdk (analyzer)
v7.0.0
DartType.element2
.DartType.isDynamic
.DartType.isVoid
.DartType.resolveToBound
.IfElement.condition
.IfStatement.condition
.AstNode.getProperty
andAstNode.setProperty
.File.createSource()
, it violates levels of abstraction.You can get
Source
instances fromAnalysisResult
s.LibraryElement.toLegacyTypeIfOptOut
.LibraryElement.toLegacyElementIfOptOut
.LibraryElement.isNonNullableByDefault
.File.changes
andFolder.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
.LibraryElement
properties.enabledPluginNames
andhint
fromAnalysisOptions
.source_io.dart
.lint/Spelunker
.source_resource.dart
.MultiplyInheritedExecutableElement
.AnalyzeFunctionBodiesPredicate
.normalParameterNames
andoptionalParameterNames
fromFunctionType
.v6.11.0
LibraryElement.exportedLibraries
.LibraryElement.importedLibraries
.v6.10.0
LibraryElement.accessibleExtensions
, useCompilationUnitElement.accessibleExtensions
instead.LibraryElement.exportedLibraries
.LibraryElement.importedLibraries
.LibraryElement.isBrowserApplication
.LibraryElement.libraryExports
,use
CompilationUnitElement.libraryExports
instead.LibraryElement.libraryImports
,use
CompilationUnitElement.libraryImports
instead.LibraryElement.prefixes
,use
CompilationUnitElement.libraryImportPrefixes
instead.LibraryElement.parts
,use
CompilationUnitElement.parts
instead.LibraryElement.scope
,use
CompilationUnitElement.scope
instead.v6.9.0
NormalFormalParameter
now implementsAnnotatedNode
.Element.enclosingElement
, useenclosingElement3
.v6.8.0
AnalysisContextCollection.dispose()
. It must be invoked at the end.ContextLocator
andContextBuilder
.Use
AnalysisContextCollection
instead.v6.7.0
File.createSource()
, it violates levels of abstraction.You can get
Source
instances fromAnalysisResult
s.AnalysisError
.v6.6.0
src/file_system/file_system.dart
from
file_system/file_system.dart
.package:analyzer/src/source/source_resource.dart
,import
package:analyzer/source/file_source.dart
instead.package:analyzer/src/source/source.dart
,import
package:analyzer/source/source.dart
instead.v6.5.2
macros: '>=0.1.2-0 <0.1.3'
.v6.5.1
macros: '>=0.1.1-0 <0.1.2'
.v6.5.0
LibraryElement.toLegacyTypeIfOptOut
.LibraryElement.toLegacyElementIfOptOut
.LibraryElement.isNonNullableByDefault
.InterfaceElement.lookUpGetter
,InterfaceElement.lookUpMethod
,and
InterfaceElement.lookUpSetter
.GeneralizingAstVisitor.visitNamedType
to invokevisitTypeAnnotation
.PropertyInducingElement get variable
inPropertyAccessorElement
,use
PropertyInducingElement? get variable2
instead.The reason for this is that when the property accessor is an augmentation
without the corresponding declaration, there is no corresponding variable.
ExtensionDeclaration.onKeyword
andextendedType
.Use
ExtensionOnClause? get onClause
instead.Extension augmentations are not allowed to have
onClause
.OnClause
, useMixinOnClause
instead.@doNotSubmit
.@mustBeConst
.constructor
,directive
,enumValue
, andtypeParameter
.AstNode.getProperty
andAstNode.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.1
v6.3.0
3.3
.ConstantEvaluator
.v6.2.0
v6.1.0
InstanceElement
, a super-interface forInterfaceElement
and
ExtensionElement
.TypeSystem.greatestLowerBound
.v6.0.0
declaredElement2
from AST.element2
from AST.name2
from AST.FunctionBody.isPotentiallyMutatedInClosure
.extensionName
,staticElement
fromExtensionOverride
.name
fromNamedType
.v5.13.0
InvalidType
is now used when types or property cannot be resolved.Previously
DynamicType
was used.v5.12.0
DartType.isDynamic
, useis DynamicType
instead.NamedType
to useimportPrefix
andname2
token.The deprecated
name
node is still visited in this version, but will stopin the next major version.
ExtensionOverride
to useimportPrefix
andname
token.The deprecated
extensionName
node is still visited in this version, butwill stop in the next major version.
AnalysisError
constructor, usetmp
constructor,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
DynamicType
was used.In the future
DynamicType
will be used only when specified explicitly,or a property is resolved against a dynamic target. The clients should
prepare by checking also for
InvalidType
in addition toDynamicType
.v5.11.1
finalKeyword
,interfaceKeyword
andsealedKeyword
ofMixinElement
. 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
@experimental
from AST nodes and elements for records and patterns.IfStatement.condition
, useexpression
instead.NamedType.importPrefix
,NamedType.name2
, andNamedType.element
.Deprecated
NamedType.name
. CurrentlyIdentifier
is an expression, andan expression as a name of a type does not make sense. So, instead we model
it as a name token, the
Element
that it references, and an optional importlibrary prefix reference.
v5.10.0
DartType.isDartCoreType
.v5.9.0
FunctionBody.isPotentiallyMutatedInClosure
, not used by clients.FunctionBody.isPotentiallyMutatedInScope
and pattern assignment.v5.8.0
DartType.isVoid
, useis VoidType
instead.records
,patterns
, andclass-modifiers
features enabled by default.v5.7.1
>=2.19.0 <3.0.0
to usePathNotFoundException
fromdart:io
.v5.6.0
DartPattern.precedence
.v5.5.0
RecordPatternField
toPatternField
.RecordPatternFieldName
toPatternFieldName
.v5.4.0
v5.3.1
collection: ^1.17.0
because we useelementAtOrNull
.v5.2.0
Element.enclosingElement3
, useenclosingElement
instead.Directive.element2
, useelement
instead.CatchClause.exceptionParameter2
, useexceptionParameter
instead.CatchClause.stackTraceParameter2
, usestackTraceParameter
instead.DartType.element2
, useelement
instead.Element.isAccessibleIn2()
, useisAccessibleIn()
instead.CompilationUnitElement.enums2
, useenums
instead.CompilationUnitElement.getEnum2()
, usegetEnum()
instead.CompilationUnitElement.mixins2
, usemixins
instead.LibraryElement.parts2
, useparts
instead.ImportElement.imports2
, useimports
instead.AnalysisDriverForPackageBuild.sdkLibraryUris
.buildSdkSummary2()
, usebuildSdkSummary()
instead.v5.1.0
AstNode.name2
, usename
instead.AstNode.declaredElement2
, usedeclaredElement
instead.v5.0.0
DiagnosticMessage.message
.LibraryElement.getImportsWithPrefix()
.ParameterElement.isNotOptional
.DartType.displayName
.AnalysisDriver
.ClassOrMixinDeclaration
.Declaration.declaredElement
.Element.enclosingElement
andenclosingElement2
.ExportElement
,ImportElement
.NamedCompilationUnitMember.name
.Declaration.declaredElement
.DartType.element
.Configuration
📅 Schedule: Branch creation - "after 9pm,before 6am" in timezone Africa/Johannesburg, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, 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.