Skip to content

Cherry pick visitor #10614

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

Merged
merged 2 commits into from
May 2, 2025
Merged

Conversation

adrian-prantl
Copy link

No description provided.

This reverts commit 0638894.

(cherry picked from commit 784a8a8)
…ypeAtIndex()

This patch introduces a new class SwiftRuntimeTypeVisitor that exists
to unify iteration over runtime type information. The visitor callback
has closure parameters that can be called to make additional expensive
queries on a child.

TODO: This is not the final evolution step.

- We probably should remove the "depth" parameter entirely and implement the access path computation for GetIndexOfChildMemberWithName at a different layer.

- We could cache the results for the last execution context.

Relanding with an off-by-one error fixed in
GetExistentialSyntheticChildren that was caught by ASAN!

(cherry picked from commit 4c6a22a)
@adrian-prantl adrian-prantl merged commit be9371f into swiftlang:next May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant