Replace the open constructs by scopes (outermost first).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(scope_stack_t), | intent(inout) | :: | self |
the stack |
||
| type(scope_t), | intent(in) | :: | scopes(:) |
a saved stack (see stack_snapshot) |
pure subroutine stack_restore(self, scopes) !! Replace the open constructs by `scopes` (outermost first). class(scope_stack_t), intent(inout) :: self !! the stack type(scope_t), intent(in) :: scopes(:) !! a saved stack (see [[stack_snapshot]]) integer :: j self%top = 0 do j = 1, size(scopes) call self%push(scopes(j)) end do end subroutine stack_restore