Skip to content

Commit 34c18da

Browse files
scheglovCommit Queue
authored andcommitted
Prepare to publish analyzer 5.11.1 and _fe_analyzer_shared 59.0.0
Bug: #52159 Change-Id: Ia603e77694d11af1045a94bdf00468d02eb5f6af Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/297980 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]>
1 parent 86e3305 commit 34c18da

File tree

4 files changed

+31
-1
lines changed

4 files changed

+31
-1
lines changed

pkg/analyzer/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 5.11.1
2+
* Restore previously published `finalKeyword`, `interfaceKeyword` and
3+
`sealedKeyword` of `MixinElement`. We added them preliminary while
4+
working on the class modifiers feature, but eventually decided to remove.
5+
See https://github.com/dart-lang/sdk/issues/52159 for details.
6+
17
## 5.11.0
28
* Removed `@experimental` from AST nodes and elements for records and patterns.
39
* Deprecated `IfStatement.condition`, use `expression` instead.

pkg/analyzer/lib/dart/ast/ast.dart

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3815,11 +3815,19 @@ abstract class MixinDeclaration implements MixinOrAugmentationDeclaration {
38153815
@override
38163816
MixinElement? get declaredElement2;
38173817

3818+
/// Return the 'final' keyword, or `null` if the keyword was absent.
3819+
@Deprecated('This feature was removed from the language')
3820+
Token? get finalKeyword;
3821+
38183822
/// Returns the implements clause for the class/mixin, or `null` if the
38193823
/// class/mixin does not implement any interfaces.
38203824
@override
38213825
ImplementsClause? get implementsClause;
38223826

3827+
/// Return the 'interface' keyword, or `null` if the keyword was absent.
3828+
@Deprecated('This feature was removed from the language')
3829+
Token? get interfaceKeyword;
3830+
38233831
/// Returns the left curly bracket.
38243832
@override
38253833
Token get leftBracket;
@@ -3832,6 +3840,10 @@ abstract class MixinDeclaration implements MixinOrAugmentationDeclaration {
38323840
@override
38333841
Token get rightBracket;
38343842

3843+
/// Return the 'sealed' keyword, or `null` if the keyword was absent.
3844+
@Deprecated('This feature was removed from the language')
3845+
Token? get sealedKeyword;
3846+
38353847
/// Returns the type parameters for the class/mixin, or `null` if the
38363848
/// class/mixin does not have any type parameters.
38373849
@override

pkg/analyzer/lib/src/dart/ast/ast.dart

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9167,6 +9167,10 @@ class MixinDeclarationImpl extends NamedCompilationUnitMemberImpl
91679167
@override
91689168
Token get endToken => rightBracket;
91699169

9170+
@Deprecated('This feature was removed from the language')
9171+
@override
9172+
Token? get finalKeyword => null;
9173+
91709174
@override
91719175
Token get firstTokenAfterCommentAndMetadata {
91729176
return baseKeyword ?? mixinKeyword;
@@ -9179,6 +9183,10 @@ class MixinDeclarationImpl extends NamedCompilationUnitMemberImpl
91799183
_implementsClause = _becomeParentOf(implementsClause);
91809184
}
91819185

9186+
@Deprecated('This feature was removed from the language')
9187+
@override
9188+
Token? get interfaceKeyword => null;
9189+
91829190
@override
91839191
NodeListImpl<ClassMemberImpl> get members => _members;
91849192

@@ -9189,6 +9197,10 @@ class MixinDeclarationImpl extends NamedCompilationUnitMemberImpl
91899197
_onClause = _becomeParentOf(onClause);
91909198
}
91919199

9200+
@Deprecated('This feature was removed from the language')
9201+
@override
9202+
Token? get sealedKeyword => null;
9203+
91929204
@override
91939205
TypeParameterListImpl? get typeParameters => _typeParameters;
91949206

pkg/analyzer/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: analyzer
2-
version: 5.11.0
2+
version: 5.11.1
33
description: >-
44
This package provides a library that performs static analysis of Dart code.
55
repository: https://github.com/dart-lang/sdk/tree/main/pkg/analyzer

0 commit comments

Comments
 (0)