-
Notifications
You must be signed in to change notification settings - Fork 440
Add an introducer property to DeclGroupSyntax #2539
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@swift-ci please test |
@@ -72,6 +72,22 @@ public protocol DeclGroupSyntax: SyntaxProtocol, DeclSyntaxProtocol { | |||
set | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also open to renaming DeclGroupSyntax
if anyone has a better name for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’m not a huge fan of my suggestion but what this conceptually is, is a DeclWithMembersSyntax
, I think. At least that describes the trait IMO.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That matches the other "With" at least 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thank you!
@@ -72,6 +72,22 @@ public protocol DeclGroupSyntax: SyntaxProtocol, DeclSyntaxProtocol { | |||
set | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’m not a huge fan of my suggestion but what this conceptually is, is a DeclWithMembersSyntax
, I think. At least that describes the trait IMO.
9722a71
to
88f7302
Compare
@swift-ci please test |
@swift-ci Please test Windows |
It can be useful to grab the introducer of a particular declaration, add a property for this purpose to `DeclGroupSyntax`. Fixes swiftlang#2535. Resolves rdar://124247480.
88f7302
to
49e7930
Compare
@swift-ci please test |
It can be useful to grab the introducer of a particular declaration, add a property for this purpose to
DeclGroupSyntax
.Fixes #2535.
Resolves rdar://124247480.