Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2f739bd

Browse files
stereotype441Commit Queue
authored and
Commit Queue
committed
[analyzer] Add ClassMemberImpl.augmentKeyword.
All classes derived from `ClassMemberImpl` already had animplementation of `augmentKeyword` except for`PrimaryConstructorBodyImpl` (which was added as part of this CL).In a follow-up CL, this will be used as part of a rewrite of`MemberDuplicateDefinitionVerifier`, to allow members marked `augment`to be excluded from duplicate checking.Change-Id: I6a6a6964b8e41e3e5fde3e17428204d1e0898bbfReviewed-on:https://dart-review.googlesource.com/c/sdk/+/468882Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>Commit-Queue: Paul Berry <paulberry@google.com>
1 parent1636ed2 commit2f739bd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3305,6 +3305,9 @@ sealed class ClassMemberImpl extends DeclarationImpl implements ClassMember {
33053305
/// Either or both of the [comment] and [metadata] can be `null` if the member
33063306
/// doesn't have the corresponding attribute.
33073307
ClassMemberImpl({required super.comment, required super.metadata});
3308+
3309+
/// The `augment` keyword, or `null` if the keyword was absent.
3310+
Token? get augmentKeyword;
33083311
}
33093312

33103313
/// The name of a class, enum, or extension type declaration.
@@ -19635,6 +19638,9 @@ final class PrimaryConstructorBodyImpl extends ClassMemberImpl
1963519638
_becomeParentOf(body);
1963619639
}
1963719640

19641+
@override
19642+
Token? get augmentKeyword => null;
19643+
1963819644
@generated
1963919645
@override
1964019646
FunctionBodyImpl get body => _body;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp