mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 10:49:00 +00:00
[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:
parent
22de5b34f2
commit
ca6e3499b8
2 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue