fix(deps): update dependency analyzer to v13#60
Open
renovate[bot] wants to merge 1 commit intodevelopfrom
Open
fix(deps): update dependency analyzer to v13#60renovate[bot] wants to merge 1 commit intodevelopfrom
renovate[bot] wants to merge 1 commit intodevelopfrom
Conversation
Author
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
8.4.0→13.0.0Release Notes
dart-lang/sdk (analyzer)
v13.0.0MixinFragment.superclassConstraintshas been removed. Usefragment.element.superclassConstraintsinstead.DefaultFormalParameterhas been removed. Default values for parameters are now represented compositionally via adefaultClauseproperty on allFormalParameternodes.SimpleFormalParameterandFunctionTypedFormalParameterhave been removed and replaced byRegularFormalParameter.functionTypedSuffixproperty onFormalParameter.NormalFormalParameterhas been removed from the AST hierarchy.AstVisitormethodsvisitDefaultFormalParameter,visitSimpleFormalParameter, andvisitFunctionTypedFormalParameterhave been removed. UsevisitRegularFormalParameterinstead for standard parameters.FormalParameterDefaultClauseandFunctionTypedFormalParameterSuffixAST nodes to represent parameter defaults and function-typed parameter structures.NamedExpressionhas been removed and replaced withNamedArgumentinArgumentListandRecordLiteralNamedFieldinRecordLiteral.ArgumentandRecordLiteralFieldAST node interfaces, whichExpressionnow implements.ArgumentList.argumentsnow returnsNodeList<Argument>instead ofNodeList<Expression>.RecordLiteral.fieldsnow returnsNodeList<RecordLiteralField>instead ofNodeList<Expression>.AstVisitor.visitNamedExpressionhas been removed. UsevisitNamedArgumentandvisitRecordLiteralNamedFieldinstead.FormalParameterElement.firstFragmentand.fragmentsnow returnFormalParameterFragment(instead of specific parameter fragment subtypes likeFieldFormalParameterFragment), making formal parameter fragments heterogeneous to support augmentations.LabelReferenceAST node to represent references to labels without them being in the expression hierarchy.Labelnow uses aToken nameinstead ofSimpleIdentifier label.BreakStatement.labelandContinueStatement.labelnow returnLabelReference?instead ofSimpleIdentifier?.v12.1.0dynamic,Never, andvoid. As a result, it is no longer safe to assume thatthere is a single instance of
DynamicType,NeverType, orVoidType. Use type checks (is DynamicType)instead of
identical().v12.0.0InstantiatedTypeAliasElement.nullabilitySuffix.;) in enums, extensions, and mixins, representingthem in the AST with
EmptyEnumBodyandEmptyClassBody.ClassBodyis now asealed classwith subclassesBlockClassBodyandEmptyClassBody. Getters like.members,.leftBracket,and
.rightBracketare available onBlockClassBody. This affectsClassDeclaration,ExtensionDeclaration, andMixinDeclarationbodies.EnumBodyis now asealed classwith subclassesBlockEnumBodyandEmptyEnumBody. Getters like.members,.leftBracket,and
.rightBracketare available onBlockEnumBody.LibraryIdentifier.LibraryDirective.nameandPartOfDirective.libraryNamenow returnDottedName?.DottedName.components(NodeList) isreplaced with
DottedName.tokens(List).v11.0.0ClassDeclaration.leftBracket.ClassDeclaration.members.ClassDeclaration.name.ClassDeclaration.rightBracket.ClassDeclaration.typeParameters.EnumDeclaration.constants.EnumDeclaration.leftBracket.EnumDeclaration.members.EnumDeclaration.name.EnumDeclaration.rightBracket.EnumDeclaration.semicolon.EnumDeclaration.typeParameters.ExtensionDeclaration.leftBracket.ExtensionDeclaration.members.ExtensionDeclaration.rightBracket.ExtensionTypeDeclaration.constKeyword.ExtensionTypeDeclaration.leftBracket.ExtensionTypeDeclaration.members.ExtensionTypeDeclaration.name.ExtensionTypeDeclaration.representation.ExtensionTypeDeclaration.rightBracket.ExtensionTypeDeclaration.typeParameters.ConstructorDeclaration.returnType.MixinDeclaration.leftBracket.MixinDeclaration.members.MixinDeclaration.rightBracket.NamedCompilationUnitMember.RepresentationConstructorName.RepresentationDeclaration.ConstructorElement.isSynthetic.ConstructorFragment.isSynthetic.Element.isSynthetic.ExecutableFragment.isSynthetic.PropertyAccessorElement.isSynthetic.PropertyInducingElement.isSynthetic.PropertyInducingFragment.isSynthetic.visitNamedCompilationUnitMember.visitRepresentationConstructorName.visitRepresentationDeclaration.RuleVisitorRegistry.addRepresentationConstructorName.RuleVisitorRegistry.addRepresentationDeclaration.ClassDeclaration,EnumDeclaration,FunctionDeclaration,MixinDeclaration, andTypeAliasnow implementCompilationUnitMemberdirectly (instead of
NamedCompilationUnitMember).v10.2.0RuleVisitorRegistry.addRepresentationConstructorName.RuleVisitorRegistry.addRepresentationDeclaration.v10.1.0TypeSystem.futureValueType.ConstructorElement.isDeclaring.ConstructorElement.isPrimary.FieldElement.declaringFormalParameter.FieldFormalParameterElement.isDeclaringandprivateName.FieldFormalParameterFragment.privateName.LibraryFragment.isSynthetic, useisOriginNotExistingFileinstead.alias,
dynamic, orNever) in a value expression slot are now represented asTypeLiteralnodes instead ofSimpleIdentifierorPrefixedIdentifiernodes (Issues 62763, 63113).v10.0.2v10.0.1v10.0.0ClassDeclaration:leftBracket,members,rightBracketare deprecated; usebodyinstead.name,typeParametersare deprecated; usenamePartinstead.EnumDeclaration:leftBracket,constants,members,rightBracketaredeprecated; use
bodyinstead.name,typeParametersare deprecated; usenamePartinstead.ExtensionDeclaration:leftBracket,members,rightBracketare deprecated; usebodyinstead.ExtensionTypeDeclaration:leftBracket,constants,members,rightBracketaredeprecated; use
bodyinstead.constKeyword,name,representation,typeParametersaredeprecated; use
primaryConstructorinstead.in the AST, their parent nodes have changed. This means that code relying on
specific parent-child relationships for these nodes might break.
DiagnosticOrErrorListenerand theDiagnosticOrErrorListenerExtensionextension.RecordingDiagnosticListener.onErrorand
BooleanDiagnosticListener.onErrormethods.LintCode.new'shasPublishedDocsparameter.RemovedAnalysisRuleas the preferred way to represent removed lintrules. Deprecated
RuleState.removed(which was the previous way to do so).ConstructorElement.isSynthetic.Use
isOriginDeclaration,isOriginImplicitDefault,isOriginMixinApplicationinstead.TopLevelVariableElement.isSynthetic.Use
isOriginDeclaration,isOriginGetterSetter.FieldElement.isSynthetic.Use
isOriginDeclaration,isOriginGetterSetter,isOriginDeclaringFormalParameter,isOriginEnumValuesinstead.PropertyAccessorElement.isSynthetic.Use
isOriginDeclaration,isOriginInterface,isOriginVariableinstead.Element.isSynthetic; useisOriginXyzproperties instead.LibraryElement.isSynthetic; useisOriginNotExistingFileinstead.SyntacticEntityis not intended to be subclassed byclients.
DiagnosticCode.nameandDiagnosticCode.uniqueName. UseDiagnosticCode.lowerCaseNameandDiagnosticCode.lowerCaseUniqueNameinstead.
GitPluginSource,PathPluginSource,PluginConfiguration,PluginSource,VersionedPluginSourcefrom thepublic API.
AnalysisOptions.pluginConfigurations.v9.0.0Diagnostic.data.DiagnosticReporter.atOffsetand the constructorsDiagnostic.tmpandDiagnostic.forValues, remove the deprecated namedparameter
errorCode, and make the named parameterdiagnosticCodenon-nullable and required.
DiagnosticReporter.atOffsetnamed parameter,errorCode.BooleanErrorListener.RecordingErrorListener.AnalysisErrorListener.NULL_LISTENER.AstNodeExtension.NullShortableExpression.PartDirective.configurations.TypeDefiningElement.TypeAliasElement.aliasedElement.resolveFile2.ErrorCode.ErrorSeverity.ErrorType.AnalysisErrorListener.RecordingDiagnosticListener.errors.RecordingDiagnosticListener.getErrorForSource.BooleanDiagnosticListener.onErrorin favor of.onDiagnostic.RecordingDiagnosticListener.onErrorin favor of.onDiagnostic.DiagnosticOrErrorListenerin favor ofDiagnosticListener.Configuration
📅 Schedule: (in timezone Asia/Tokyo)
🚦 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.