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 in ASSOCIATE blocks with array slices #108

Open
gnikit opened this issue May 10, 2022 · 0 comments
Open

Hover in ASSOCIATE blocks with array slices #108

gnikit opened this issue May 10, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@gnikit
Copy link
Member

gnikit commented May 10, 2022

Describe the bug

hover over ARRAY shows the wrong dimension

PROGRAM test_associate_block
    IMPLICIT NONE
    REAL :: A(5), B(5,5), C, III = 1
    ASSOCIATE (ARRAY => B(:,1))
        ARRAY (3) = ARRAY (1) + ARRAY (2)
    END ASSOCIATE
END PROGRAM test_associate_block

I think we can get away with creating a function to parse the dimensions of arrays (see parse_fortan.py near the fortran_var AST node add.), then copy the keywords from the link_obj but impose our own keyword_info i.e. the slice.

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

No branches or pull requests

1 participant