Skip to content
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

Save information for decompiling non-closed definitions #3009

Merged
merged 1 commit into from Mar 29, 2022

Conversation

dolio
Copy link
Contributor

@dolio dolio commented Mar 29, 2022

Previously in cases like:

let
  f x = ...
  g y = ... f ...
  ...

we would not save decompilation information for g, because it wouldn't
be possible to guarantee that the output of decompilation actually made
sense (for instance, if g is decompiled, it will not mention f.

However, this seems to block some useful documentation, even in cases
where it doesn't seem like such intermediate definitions would need to
be decompiled. So, it seems like a better trade-off to just allow
decompilation, and accept that some output might be difficult to
understand. Such output can be avoided when writing documentation.

Fixes #2061.

Previously in cases like:

    let
      f x = ...
      g y = ... f ...
      ...

we would not save decompilation information for `g`, because it wouldn't
be possible to guarantee that the output of decompilation actually made
sense (for instance, if `g` is decompiled, it will not mention `f`.

However, this seems to block some useful documentation, even in cases
where it doesn't seem like such intermediate definitions would need to
be decompiled. So, it seems like a better trade-off to just allow
decompilation, and accept that some output might be difficult to
understand. Such output can be avoided when writing documentation.
@pchiusano pchiusano merged commit 7163508 into trunk Mar 29, 2022
@pchiusano pchiusano deleted the fix/relaxed-decompilation branch March 29, 2022 19:45
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.

UCM docs rendering fails with cannot decompile to local recursive binding
2 participants