Skip to content

Add Type XRefs to IR #51

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 3 commits into from
Sep 23, 2023
Merged

Add Type XRefs to IR #51

merged 3 commits into from
Sep 23, 2023

Conversation

hoodmane
Copy link
Member

This updates the IR representation of types to a possible list of strings or xref objects. The xrefs can be internal xrefs to types in the project or external ones to types defined in dependencies. I don't currently add xrefs to intrinsic types but that would be a natural thing to do.

The renderer currently throws this information away. Rendering it is left to a followup.

@hoodmane hoodmane force-pushed the type-xrefs1 branch 2 times, most recently from c3151c0 to b197dfb Compare September 23, 2023 22:07
This updates the IR representation of types to a possible list of strings or
xref objects. The xrefs can be internal xrefs to types in the project or
external ones to types defined in dependencies. I don't currently add xrefs
to intrinsic types but that would be a natural thing to do.

The renderer currently throws this information away. Rendering it is left to a
followup.
@hoodmane hoodmane merged commit 36b2c34 into pyodide:master Sep 23, 2023
@hoodmane hoodmane deleted the type-xrefs1 branch September 23, 2023 22:22
@hoodmane hoodmane mentioned this pull request Sep 24, 2023
hoodmane added a commit that referenced this pull request Sep 24, 2023
This is the second half of #51. It adds support to the renderer to generate internal xrefs.
Which wasn't that much work.

In a followup it would be nice to add external xrefs.
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