Skip to content

Conversation

bnbarham
Copy link
Contributor

Cherry-picks 8889dae (#58775). Clients relying on the is_dynamic property of a cursor info request to then further perform further lookups (to eg. show overrides where applicable) would previously miss doing so for properties declared in an interface or classes. This change adds is_dynamic in these cases.


Properties can also be specified in a protocol/overridden by subclasses,
so they should also be classed as "dynamic" in these cases.

Removed receiver USRs when not dynamic, since it's not used for
anything in that case and should be equivalent to the container anyway.

Resolves rdar://92882348.

Properties can also be specified in a protocol/overridden by subclasses,
so they should also be classed as "dynamic" in these cases.

Removed receiver USRs when *not* dynamic, since it's not used for
anything in that case and should be equivalent to the container anyway.

Resolves rdar://92882348.
@bnbarham bnbarham added the r5.7 label May 16, 2022
@bnbarham bnbarham requested a review from airspeedswift May 16, 2022 20:46
@bnbarham bnbarham requested a review from a team as a code owner May 16, 2022 20:46
@bnbarham bnbarham changed the title [SourceKit] Add whether a property is dynamic [5.7][SourceKit] Add whether a property is dynamic May 16, 2022
@bnbarham
Copy link
Contributor Author

@swift-ci please test

@bnbarham bnbarham merged commit 0495ab8 into swiftlang:release/5.7 May 18, 2022
@bnbarham bnbarham deleted the cherry-dyn-property branch May 18, 2022 22:43
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.7 labels Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.7
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants