Repository navigation
Use the applied signature for modules created by functor application #9084
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
Open
+2,491
−109
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
93deefc
Use the applied signature for modules created by functor application
cknitt d45f713
Keep the functor's file for members of an applied functor
cknitt 467cb2a
Link signature help type definitions to their declaring file
cknitt 4df3721
Connect renamed members of an applied functor to their declarations
cknitt 9bf663d
Connect nested modules of an applied functor to their declarations
cknitt 29cad75
Resolve applied fields and constructors to the functor's declarations
cknitt 9ae3cc8
Register module types of an applied functor's signature
cknitt 420145e
Map the members of an applied functor's module types to their declara…
cknitt 7a3dd05
Register an inline functor's parameters before applying it
cknitt e886bad
Locate items of a functor applied from another file in that file
cknitt d22c654
Refer uses of a functor applied from another file to that file's members
cknitt ff8f5be
Follow a functor's aliases to its file for the members it creates
cknitt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When a curried functor is applied in separate bindings, for example
module First = MakeTwo(IntOrd)followed bymodule Final = First(IntOrd),body_typestops at theTmod_identforFirst. Its result signature already contains identifiers renamed by the compiler's first application (Typemod.type_modulecallsSubst.modtypefor path arguments), sorecord_renamed_stampsmaps Final's members to those intermediate identifiers rather than the declarations in MakeTwo's body. Consequently, Find References and Rename from the original member omitFinal.member, and renaming from that usage misses the declaration. Resolve the named partial application's original result identities before recording this mapping, rather than handling only applications nested in one expression.Useful? React with 👍 / 👎.