The view of code statement stmt (see set_view, which fills one in place, without a copy).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | src |
source text |
||
| type(token_list_t), | intent(in) | :: | tokens |
tokens of |
||
| type(statement_t), | intent(in) | :: | stmt |
the statement |
function statement_view(src, tokens, stmt) result(v) !! The view of code statement `stmt` (see [[set_view]], which fills one in place, without a copy). character(len=*), intent(in) :: src !! source text type(token_list_t), intent(in) :: tokens !! tokens of `src` type(statement_t), intent(in) :: stmt !! the statement type(statement_view_t) :: v call set_view(src, tokens, stmt, v) end function statement_view