Skip to content
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

Hover on associated blocks does not display types #62

Closed
gnikit opened this issue Feb 27, 2022 · 0 comments · Fixed by #107
Closed

Hover on associated blocks does not display types #62

gnikit opened this issue Feb 27, 2022 · 0 comments · Fixed by #107
Assignees
Labels
bug Something isn't working

Comments

@gnikit
Copy link
Member

gnikit commented Feb 27, 2022

Hovering over variables that have been associated in an ASSOCIATE block yield no signature.

program test
    implicit none
    integer :: a
    testing: associate(c => 1)
        print*, c
    end associate testing
    associate(c => a)
        print*, c
    end associate
end program test
@gnikit gnikit added the bug Something isn't working label Feb 27, 2022
@gnikit gnikit self-assigned this Feb 27, 2022
@gnikit gnikit added this to the Hover Improvements milestone Mar 28, 2022
gnikit added a commit that referenced this issue May 10, 2022
Fixes #62

Adds rudimentary hover support for hovering over associate blocks

TODO:
- Support slices of existing AST nodes, currently the associate node
   inherits the keywords from the link_obj so the slices display
   the wrong dimensions.
- Support literals, given that Fortran literals are not currently
   registered as AST nodes it is difficult to provide information on
   the fly without creating more spaghetti code (see current literals).
   The only elegant solution I can think of is parsing the literals as
   AST nodes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant