Skip to content

Conversation

@voodoos
Copy link
Collaborator

@voodoos voodoos commented Dec 1, 2022

Currently Merlin will locate the type of a constructor, not the constructor itself.
This is much improved in that PR.

@voodoos voodoos changed the title Locate constructor exact positions Dec 1, 2022
-> Longident.t
-> Env.t
-> (Path.t * Shape.Sig_component_kind.t * Shape.Uid.t * Location.t) option
-> (Path.t * Shape.Sig_component_kind.t * Shape.Uid.t * Location.t * bool) option
Copy link
Member

Choose a reason for hiding this comment

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

Would it be possible to switch bool to a more descriptive type? For example some (polymorphic?) variant describing the two options?

@voodoos voodoos force-pushed the locate-constructor-exact-pos branch from a1ffdc0 to 2dcfaa6 Compare December 2, 2022 14:20
@voodoos
Copy link
Collaborator Author

voodoos commented Dec 9, 2022

After discussing this issue with @pitag-ha we realized that it only answers the problem for type's declarations, not definitions. I am turning this into a draft while looking for a more robust answer.

@voodoos voodoos marked this pull request as draft December 9, 2022 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants