-
Notifications
You must be signed in to change notification settings - Fork 57
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
All references are not being found for module component #645
Comments
As a simpler example: module M1 = {
let x1 = 10
@react.component
let make = () => React.null
}
module M2 = {
let x2 = 10
} No references are found for |
Even simpler example: module M1 = {
let x = 10
let a = 3
let a = a
}
module M2 = {
let x = 10
} |
This could be relevant: #622 |
So shadowing creates a module constraint (i.e. a module type generated by the compiler), but also an example with an explicit module type has the same problem: module M3: {
let aa: int
} = {
let aa = 13
}
let dd = M3.aa
// ^ref |
I just tested #646 and the references still point to definition. |
Seems to work on the project used to test the extension. Might need a separate small repro. |
ApiLayout.res on ReScript lang website.
The analysis return two locations:
dune exec rescript-editor-analysis references ~/Desktop/projects/rescript-lang.org/src/layouts/ApiLayout.res 130 9
The locations above are of
make
function, i.e, definition.The real references occur in other files:
The text was updated successfully, but these errors were encountered: