Skip to content

Hover in ASSOCIATE blocks with array slices #108

Open
@gnikit

Description

@gnikit

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions