Fix detection of private symbols in Import Nodes
At the moment, Loki does not take access control attributes into account if specified in list of private symbols.
- Private symbols correctly detected :
MODULE some_mod
IMPLICIT NONE
PRIVATE
INTEGER, :: myvar
END MODULE some_mod
- Private symbols correctly detected :
MODULE some_mod
IMPLICIT NONE
INTEGER, PRIVATE :: myvar
END MODULE some_mod
- Private symbols NOT correctly detected :
MODULE some_mod
IMPLICIT NONE
PRIVATE :: myvar
INTEGER :: myvar
END MODULE some_mod
This is because module.private_access_spec
is not used to define the symbol.type.private
attribute
This MR fixes this locally.