Skip to content

Upgrading analyzer 2 to 3

Unknown2.8.0 → 3.4.1

Fetching 7 releases from GitHub…0 / 7
UnknownUpgrade verdict

DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.

  • DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
  • This page updates as the notes come in.
Still reading release notes

DepDelta is still reading the release notes in this range. This updates as they come in.

Generated by DepDelta from published Dart source. Not mixed with prose notes.

  • added: method AnalysisContext.applyPendingFileChanges(): Future<List<String>>
  • added: method AnalysisContext.changeFile(String path): void
  • removed: ctor FeatureSet.forTesting( {String sdkVersion, List<Feature> additionalFeatures})
  • removed: ctor FeatureSet.fromEnableFlags(List<String> flags)
  • added: static field Feature.enhanced_enums: final
  • added: static field Feature.macros: final
  • removed: enum ResultState
  • removed: get AnalysisResult.path: String
  • removed: get AnalysisResult.state: ResultState
  • removed: get AnalysisResult.uri: Uri
  • removed: get UnitElementResult.signature: String
  • removed: member ResultState.INVALID_FILE_TYPE
  • removed: member ResultState.NOT_A_FILE
  • removed: member ResultState.NOT_FILE_OF_URI
  • removed: member ResultState.VALID
  • removed: method AnalysisSession.getErrors2(String path): Future<SomeErrorsResult>
  • removed: method AnalysisSession.getFile2(String path): SomeFileResult
  • removed: method AnalysisSession.getLibraryByUri2(String uri): Future<SomeLibraryElementResult>
  • removed: method AnalysisSession.getParsedLibrary2(String path): SomeParsedLibraryResult
  • removed: method AnalysisSession.getParsedLibraryByElement2(LibraryElement element): SomeParsedLibraryResult
  • removed: method AnalysisSession.getParsedUnit2(String path): SomeParsedUnitResult
  • removed: method AnalysisSession.getResolvedLibrary2(String path): Future<SomeResolvedLibraryResult>
  • removed: method AnalysisSession.getResolvedLibraryByElement2( LibraryElement element): Future<SomeResolvedLibraryResult>
  • removed: method AnalysisSession.getResolvedUnit2(String path): Future<SomeResolvedUnitResult>
  • removed: method AnalysisSession.getUnitElement2(String path): Future<SomeUnitElementResult>
  • removed: class TypeName: abstract implements NamedType
  • removed: get TypeLiteral.typeName: TypeName
  • removed: method AstVisitor.visitTypeName(TypeName node): R?
  • changed: get ClassTypeAlias.superclass: TypeName → get ClassTypeAlias.superclass: NamedType
  • changed: get CompilationUnit.lineInfo: LineInfo? → get CompilationUnit.lineInfo: LineInfo
  • changed: get ConstructorName.type: TypeName → get ConstructorName.type: NamedType
  • changed: get ExtendsClause.superclass: TypeName → get ExtendsClause.superclass: NamedType
  • changed: get ImplementsClause.interfaces: NodeList<TypeName> → get ImplementsClause.interfaces: NodeList<NamedType>
  • changed: get OnClause.superclassConstraints: NodeList<TypeName> → get OnClause.superclassConstraints: NodeList<NamedType>
  • changed: get WithClause.mixinTypes: NodeList<TypeName> → get WithClause.mixinTypes: NodeList<NamedType>
  • changed: method AstNode.thisOrAncestorMatching<E extends AstNode>(Predicate<AstNode> predicate): E? → method AstNode.thisOrAncestorMatching<E extends AstNode>( bool Function(AstNode) predicate, ): E?
  • added: class ConstructorSelector: abstract implements AstNode
  • added: class EnumConstantArguments: abstract implements AstNode
  • added: get ConstructorSelector.name: SimpleIdentifier
  • added: get ConstructorSelector.period: Token
  • added: get EnumConstantArguments.argumentList: ArgumentList
  • added: get EnumConstantArguments.constructorSelector: ConstructorSelector?
  • added: get EnumConstantArguments.typeArguments: TypeArgumentList?
  • added: get EnumConstantDeclaration.arguments: EnumConstantArguments?
  • added: get EnumConstantDeclaration.constructorElement: ConstructorElement?
  • added: get EnumDeclaration.implementsClause: ImplementsClause?
  • added: get EnumDeclaration.members: NodeList<ClassMember>
  • added: get EnumDeclaration.semicolon: Token?
  • added: get EnumDeclaration.typeParameters: TypeParameterList?
  • added: get EnumDeclaration.withClause: WithClause?
  • added: method AstVisitor.visitConstructorSelector(ConstructorSelector node): R?
  • added: method AstVisitor.visitEnumConstantArguments(EnumConstantArguments node): R?
  • removed: method AstFactory.typeName(Identifier name, TypeArgumentList? typeArguments, {Token? question}): TypeName
  • changed: method AstFactory.classDeclaration( Comment? comment, List<Annotation>? metadata, Token? abstractKeyword, Token classKeyword, SimpleIdentifier name, TypeParameterList? typeParameters, ExtendsClause? extendsClause, WithClause? withClause, ImplementsClause? implementsClause, Token leftBracket, List<ClassMember> members, Token rightBracket): ClassDeclaration → method AstFactory.classDeclaration( Comment? comment, List<Annotation>? metadata, Token? abstractKeyword, Token? macroKeyword, Token? augmentKeyword, Token classKeyword, SimpleIdentifier name, TypeParameterList? typeParameters, ExtendsClause? extendsClause, WithClause? withClause, ImplementsClause? implementsClause, Token leftBracket, List<ClassMember> members, Token rightBracket): ClassDeclarati…
  • changed: method AstFactory.classTypeAlias( Comment? comment, List<Annotation>? metadata, Token keyword, SimpleIdentifier name, TypeParameterList? typeParameters, Token equals, Token? abstractKeyword, NamedType superclass, WithClause withClause, ImplementsClause? implementsClause, Token semicolon): ClassTypeAlias → method AstFactory.classTypeAlias( Comment? comment, List<Annotation>? metadata, Token keyword, SimpleIdentifier name, TypeParameterList? typeParameters, Token equals, Token? abstractKeyword, Token? macroKeyword, Token? augmentKeyword, NamedType superclass, WithClause withClause, ImplementsClause? implementsClause, Token semicolon): ClassTypeAlias
  • changed: method AstFactory.compilationUnit( {required Token beginToken, ScriptTag? scriptTag, List<Directive>? directives, List<CompilationUnitMember>? declarations, required Token endToken, required FeatureSet featureSet}): CompilationUnit → method AstFactory.compilationUnit({ required Token beginToken, ScriptTag? scriptTag, List<Directive>? directives, List<CompilationUnitMember>? declarations, required Token endToken, required FeatureSet featureSet, LineInfo? lineInfo, }): CompilationUnit
  • changed: method AstFactory.fieldDeclaration2( {Comment? comment, List<Annotation>? metadata, Token? abstractKeyword, Token? covariantKeyword, Token? externalKeyword, Token? staticKeyword, required VariableDeclarationList fieldList, required Token semicolon}): FieldDeclaration → method AstFactory.fieldDeclaration2( {Comment? comment, List<Annotation>? metadata, Token? abstractKeyword, Token? augmentKeyword, Token? covariantKeyword, Token? externalKeyword, Token? staticKeyword, required VariableDeclarationList fieldList, required Token semicolon}): FieldDeclaration
  • changed: method AstFactory.functionDeclaration( Comment? comment, List<Annotation>? metadata, Token? externalKeyword, TypeAnnotation? returnType, Token? propertyKeyword, SimpleIdentifier name, FunctionExpression functionExpression): FunctionDeclaration → method AstFactory.functionDeclaration( Comment? comment, List<Annotation>? metadata, Token? augmentKeyword, Token? externalKeyword, TypeAnnotation? returnType, Token? propertyKeyword, SimpleIdentifier name, FunctionExpression functionExpression): FunctionDeclaration
  • changed: method AstFactory.mixinDeclaration( Comment? comment, List<Annotation>? metadata, Token mixinKeyword, SimpleIdentifier name, TypeParameterList? typeParameters, OnClause? onClause, ImplementsClause? implementsClause, Token leftBracket, List<ClassMember> members, Token rightBracket): MixinDeclaration → method AstFactory.mixinDeclaration( Comment? comment, List<Annotation>? metadata, Token? augmentKeyword, Token mixinKeyword, SimpleIdentifier name, TypeParameterList? typeParameters, OnClause? onClause, ImplementsClause? implementsClause, Token leftBracket, List<ClassMember> members, Token rightBracket): MixinDeclaration
  • added: method AstFactory.enumDeclaration2({ required Comment? comment, required List<Annotation>? metadata, required Token enumKeyword, required SimpleIdentifier name, required TypeParameterList? typeParameters, required WithClause? withClause, required ImplementsClause? implementsClause, required Token leftBracket, required List<EnumConstantDeclaration> constants, required Token? semicolon, required Li…
  • removed: method GeneralizingAstVisitor.visitTypeName(TypeName node): R?
  • removed: method RecursiveAstVisitor.visitTypeName(TypeName node): R?
  • removed: method SimpleAstVisitor.visitTypeName(TypeName node): R?
  • removed: method ThrowingAstVisitor.visitTypeName(TypeName node): R?
  • removed: method TimedAstVisitor.visitTypeName(TypeName node): T?
  • removed: method UnifyingAstVisitor.visitTypeName(TypeName node): R?
  • added: method GeneralizingAstVisitor.visitConstructorSelector(ConstructorSelector node): R?
  • added: method GeneralizingAstVisitor.visitEnumConstantArguments(EnumConstantArguments node): R?
  • added: method RecursiveAstVisitor.visitConstructorSelector(ConstructorSelector node): R?
  • added: method RecursiveAstVisitor.visitEnumConstantArguments(EnumConstantArguments node): R?
  • added: method SimpleAstVisitor.visitConstructorSelector(ConstructorSelector node): R?
  • added: method SimpleAstVisitor.visitEnumConstantArguments(EnumConstantArguments node): R?
  • added: method ThrowingAstVisitor.visitConstructorSelector(ConstructorSelector node): R?
  • added: method ThrowingAstVisitor.visitEnumConstantArguments(EnumConstantArguments node): R?
  • added: method TimedAstVisitor.visitConstructorSelector(ConstructorSelector node): T?
  • added: method TimedAstVisitor.visitEnumConstantArguments(EnumConstantArguments node): T?
  • added: method UnifyingAstVisitor.visitConstructorSelector(ConstructorSelector node): R?
  • added: method UnifyingAstVisitor.visitEnumConstantArguments(EnumConstantArguments node): R?
  • changed: get CompilationUnitElement.lineInfo: LineInfo? → get CompilationUnitElement.lineInfo: LineInfo
  • changed: method Element.thisOrAncestorMatching<E extends Element>(Predicate<Element> predicate): E? → method Element.thisOrAncestorMatching<E extends Element>( bool Function(Element) predicate, ): E?
  • added: class SuperFormalParameterElement: abstract implements ParameterElement
  • added: get ClassElement.isDartCoreEnum: bool
  • added: get ConstructorElement.isGenerative: bool
  • added: get FunctionElement.isDartCoreIdentical: bool
  • added: get ParameterElement.isSuperFormal: bool
  • added: get SuperFormalParameterElement.superConstructorParameter: ParameterElement?
  • added: method ElementVisitor.visitSuperFormalParameterElement(SuperFormalParameterElement element): R?
  • added: method ExtensionElement.getField(String name): FieldElement?
  • removed: get DartType.aliasArguments: List<DartType>?
  • removed: get DartType.aliasElement: TypeAliasElement?
  • removed: method InterfaceType.lookUpGetter(String name, LibraryElement library): PropertyAccessorElement?
  • removed: method InterfaceType.lookUpGetterInSuperclass( String name, LibraryElement? library): PropertyAccessorElement?
  • removed: method InterfaceType.lookUpInheritedGetter(String name, {LibraryElement? library, bool thisType = …}): PropertyAccessorElement?
  • removed: method InterfaceType.lookUpInheritedGetterOrMethod(String name, {LibraryElement? library}): ExecutableElement?
  • removed: method InterfaceType.lookUpInheritedMethod(String name, {LibraryElement? library, bool thisType = …}): MethodElement?
  • removed: method InterfaceType.lookUpInheritedSetter(String name, {LibraryElement? library, bool thisType = …}): PropertyAccessorElement?
  • removed: method InterfaceType.lookUpMethod(String name, LibraryElement library): MethodElement?
  • removed: method InterfaceType.lookUpMethodInSuperclass(String name, LibraryElement library): MethodElement?
  • removed: method InterfaceType.lookUpSetter(String name, LibraryElement library): PropertyAccessorElement?
  • removed: method InterfaceType.lookUpSetterInSuperclass( String name, LibraryElement library): PropertyAccessorElement?
  • removed: static method InterfaceType.getSmartLeastUpperBound( InterfaceType first, InterfaceType second): InterfaceType
  • added: get DartType.isDartAsyncStream: bool
  • added: get DartType.isDartCoreEnum: bool
  • removed: get TypeProvider.nonSubtypableClasses: Set<ClassElement>
  • removed: method TypeProvider.futureOrType2(DartType valueType): InterfaceType
  • removed: method TypeProvider.futureType2(DartType valueType): InterfaceType
  • removed: method TypeProvider.iterableType2(DartType elementType): InterfaceType
  • removed: method TypeProvider.listType2(DartType elementType): InterfaceType
  • removed: method TypeProvider.mapType2(DartType keyType, DartType valueType): InterfaceType
  • removed: method TypeProvider.setType2(DartType elementType): InterfaceType
  • removed: method TypeProvider.streamType2(DartType elementType): InterfaceType
  • added: method GeneralizingElementVisitor.visitSuperFormalParameterElement(SuperFormalParameterElement element): R?
  • added: method RecursiveElementVisitor.visitSuperFormalParameterElement(SuperFormalParameterElement element): R?
  • added: method SimpleElementVisitor.visitSuperFormalParameterElement(SuperFormalParameterElement element): R?
  • added: method ThrowingElementVisitor.visitSuperFormalParameterElement(SuperFormalParameterElement element): R?
  • added: function buildSdkSummary2({ required ResourceProvider resourceProvider, required String sdkPath, String? embedderYamlPath, }): Future<Uint8List>
  • removed: ctor AnalysisError.withNamedArguments(Source source, int offset, int length, ErrorCode errorCode, Map<String, dynamic> arguments, {List<DiagnosticMessage> contextMessages = …})
  • removed: method ErrorReporter.reportErrorMessage( ErrorCode errorCode, int offset, int length, Message message): void
  • removed: method ResourceProvider.getModificationTimes(List<Source> sources): Future<List<int?>>
  • changed: get Resource.parent: Folder? → get Resource.parent: Folder
  • added: class ResourceWatcher
  • added: ctor ResourceWatcher(this.changes, this.ready)
  • added: field ResourceWatcher.changes: final Stream<WatchEvent>
  • added: field ResourceWatcher.ready: final Future<void>
  • added: method File.watch(): ResourceWatcher
  • added: method Folder.watch(): ResourceWatcher
  • added: method Resource.watch(): ResourceWatcher
  • removed: method MemoryResourceProvider.getModificationTimes(List<Source> sources): Future<List<int>>
  • removed: method MemoryResourceProvider.newDummyLink(String path): File
  • removed: method MemoryResourceProvider.updateFile(String path, String content, [int? stamp]): File
  • changed: ctor MemoryResourceProvider( {pathos.Context? context, @deprecated bool isWindows = …}) → ctor MemoryResourceProvider({ pathos.Context? context, this.delayWatcherInitialization, })
  • added: field MemoryResourceProvider.delayWatcherInitialization: final Duration?
  • removed: method OverlayResourceProvider.getModificationTimes(List<Source> sources): Future<List<int>>
  • removed: method PhysicalResourceProvider.getModificationTimes(List<Source> sources): Future<List<int?>>
  • changed: ctor InstrumentationServiceAttachment.string({ required String id, required String value, }) → ctor InstrumentationServiceAttachment.string({ required this.id, required String value, })
  • changed: ctor InstrumentationServiceAttachment.string({ required String id, required String value, }) → ctor InstrumentationServiceAttachment.string({ required this.id, required String value, })
  • changed: method CharacterLocation.operator ==(Object object): bool → method CharacterLocation.operator ==(Object other): bool