-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[CodeCompletion] Completion for @storageRestrictions
attribute
#68603
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
[CodeCompletion] Completion for @storageRestrictions
attribute
#68603
Conversation
@swift-ci Please smoke test |
04209e3
to
2c41e11
Compare
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.
Thank you for adding this!
@swift-ci Please smoke test |
2c41e11
to
39d450e
Compare
@swift-ci Please smoke test |
39d450e
to
712d3e2
Compare
@swift-ci Please smoke test |
@hamishknight @xedin I added one more patch commit to this PR. Could you give it a quick review? 712d3e2 |
get { 1 } | ||
} | ||
// FIRST_ARGUMENT: Begin completions, 1 item | ||
// FIRST_ARGUMENT-DAG: Decl[InstanceVar]/CurrNominal: other[#Int#]; |
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.
Might make sense to add one more test here that checks "accesses:" as well for completeness.
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.
LGTM, looks like my comment about VD->hasStorage()
is still outstanding, but I don't think it's that big of a deal
712d3e2
to
17e6a25
Compare
…ge()` to determine if a variable is stored This uncovered a discrepancy between `getImplInfo().hasStorage()` and `hasStorage()`.
@swift-ci Please smoke test |
Offer
storageRestrictions
after@
initializes
andaccesses
labels inside@storageRestrictions
initializes
andaccesses
labelsrdar://115501026