Returns a reference to the [StackState] of the block.
(&self)
| 1039 | |
| 1040 | /// Returns a reference to the [StackState] of the block. |
| 1041 | pub fn stack_state(&self) -> &StackState { |
| 1042 | use ControlStackFrame::*; |
| 1043 | match self { |
| 1044 | If { stack_state, .. } |
| 1045 | | Else { stack_state, .. } |
| 1046 | | Block { stack_state, .. } |
| 1047 | | Loop { stack_state, .. } => stack_state, |
| 1048 | } |
| 1049 | } |
| 1050 | |
| 1051 | /// Returns true if the current frame is [ControlStackFrame::If]. |
| 1052 | pub fn is_if(&self) -> bool { |
no outgoing calls
no test coverage detected