Skip to content

Conversation

@liam923
Copy link
Contributor

@liam923 liam923 commented Nov 21, 2025

The jkind api doesn't currently offer a way to print out a fully-expanded jkind. This PR adds such a function, format_expanded, which will make it easy for Merlin to show the expanded jkind on hovers.

It's impossible to write an expect-test in the compiler's testsuite that covers format_expanded since it's never used in the codebase. But I don't think this change needs high scrutiny, and this Merlin PR makes use of it.

Copy link
Contributor

@julesjacobs julesjacobs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, but two things came to mind:

  1. Nothing seems to call the new functionality. Is this intended because only Merlin will call this from somewhere outside of this repo? (I don't know what the Merlin setup looks like)
  2. Is it possible to add an expect test for the new function? I guess that's hard with only end-to-end expect tests?

@liam923 liam923 merged commit ab114a5 into main Nov 21, 2025
35 checks passed
@liam923 liam923 deleted the liam-print-full-jkind branch November 21, 2025 21:06
@liam923
Copy link
Contributor Author

liam923 commented Nov 21, 2025

Nothing seems to call the new functionality
Yes this is expected. Merlin currently lives in a separate repo, but vendors the compiler's typechecker.

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.

4 participants