-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Lazy accessor synthesis for storage in primary files #26469
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
Lazy accessor synthesis for storage in primary files #26469
Conversation
e9885de
to
e3e07d0
Compare
@swift-ci Please test |
@swift-ci Please test source compatibility |
@swift-ci Please test compiler performance |
Build failed |
Build failed |
Compilation-performance test failed |
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.
Minor requests only
include/swift/AST/Decl.h
Outdated
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.
"Eagerly" emitted accessors, maybe?
lib/Sema/TypeCheckAttr.cpp
Outdated
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.
Please fix the typo in the comment while you're here.
lib/Sema/TypeCheckDecl.cpp
Outdated
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.
"in elsewhere"
e3e07d0
to
2b6a672
Compare
@swift-ci Please smoke test |
@swift-ci Please test |
Build failed |
Build failed |
This is again just a temporary workaround until getInterfaceType() can kick off a request.
2b6a672
to
05baaa8
Compare
@swift-ci Please smoke test |
@swift-ci Please test source compatibility |
@swift-ci Please smoke test |
@swift-ci Please test source compatibility |
@swift-ci Please test source compatibility debug |
2 similar comments
@swift-ci Please test source compatibility debug |
@swift-ci Please test source compatibility debug |
This is a follow-up to #26461. It introduces new methods on AbstractStorageDecl for visiting accessors in a deterministic way, intended to replace getAllAccessors():
This facilitates the removal of
addExpectedOpaqueAccessorsToStorage()
.