[analyzer] Expose inlineKeyword through ClassDeclaration

This is needed to implement dartfmt support for inline classes, which
is needed to unblock enabling them internally for experimentation.

Bug: b/271244238
Change-Id: Ic9928aefbd5373f5bb0a0ae7998da54fc1f68b7c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/286180
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Slava Egorov <vegorov@google.com>
This commit is contained in:
Vyacheslav Egorov 2023-03-01 19:24:37 +00:00 committed by Commit Queue
parent 22de5b34f2
commit ca6e3499b8
2 changed files with 5 additions and 0 deletions

View file

@ -1011,6 +1011,10 @@ abstract class ClassDeclaration implements ClassOrAugmentationDeclaration {
@override
ImplementsClause? get implementsClause;
/// Return the 'inline' keyword, or `null` if the keyword was absent.
@experimental
Token? get inlineKeyword;
/// Returns the left curly bracket.
@override
Token get leftBracket;

View file

@ -1848,6 +1848,7 @@ class ClassDeclarationImpl extends NamedCompilationUnitMemberImpl
final Token? macroKeyword;
/// The 'inline' keyword, or `null` if the keyword was absent.
@override
final Token? inlineKeyword;
/// The 'sealed' keyword, or `null` if the keyword was absent.