-
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
Find references for type members is empty #88
Comments
Yes, this is intentional. Find references support for type members is not currently available as mentioned in the README. I plan to add this soon, it is pretty straightforward except for how to handle inheritance in a consistent and expected way. |
Sorry, I have missed that, as I was not that interested in the animated gifs. What is the problem with inheritance? For a type bound procedure sub of some type t, I would expect any invoking of x%sub() for x of some type s which extends t (in one or more steps). Then all types which extend t and override sub. Are there any other kind of references? |
Yeah, it's just a little more nuanced. Say you have the structure below. I agree with you that if I look for references to MODULE test_mod
TYPE :: test_parent
CONTAINS
PROCEDURE :: foo => parent_foo
END TYPE test_parent
!
TYPE, EXTENDS(test_parent) :: test_child
CONTAINS
PROCEDURE :: foo => child_foo
END TYPE test_child
END MODULE test_mod
!
PROGRAM test_prog
USE test_mod
IMPLICIT NONE
TYPE(test_parent) :: obj1
TYPE(test_child) :: obj2
CALL obj1%foo()
CALL obj2%foo()
END PROGRAM test_prog |
Indeed |
Great, works fine! |
For the code below (named test.f90), the following gives no results:
fortls --debug_rootpath . --debug_references --debug_filepath test.f90 --debug_line 5 --debug_char 18
The position is on bar, and this should give the call self%bar line, right?
The text was updated successfully, but these errors were encountered: