Skip to content

Type_grammar: include closure IDs in free names#508

Merged
chambart merged 1 commit intooxcaml:mainfrom
lthls:closure-id-free-names
Feb 3, 2022
Merged

Type_grammar: include closure IDs in free names#508
chambart merged 1 commit intooxcaml:mainfrom
lthls:closure-id-free-names

Conversation

@lthls
Copy link
Copy Markdown
Contributor

@lthls lthls commented Feb 3, 2022

This PR complements #496, insuring that the closure IDs occurring in return types have their offsets properly re-exported.

Note that I'm assuming that the function_types and closure_types maps have the same keys, so the closure IDs from the latter one are skipped to get a more accurate number of occurrences.

@lthls lthls requested a review from chambart as a code owner February 3, 2022 09:55
@mshinwell mshinwell added flambda2 Prerequisite for, or part of, flambda2 flambda2 beta labels Feb 3, 2022
Copy link
Copy Markdown
Contributor

@chambart chambart 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. I'm not sure that the number of occurences is relevant for that kind of name. But the assumption seems ok anyway.

@chambart chambart merged commit 99ac459 into oxcaml:main Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

flambda2 beta flambda2 Prerequisite for, or part of, flambda2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants