| 227 | } |
| 228 | |
| 229 | bool IsBlockInstr(TokenType token_type) { |
| 230 | switch (token_type) { |
| 231 | case TokenType::Block: |
| 232 | case TokenType::Loop: |
| 233 | case TokenType::If: |
| 234 | case TokenType::Try: |
| 235 | case TokenType::TryTable: |
| 236 | return true; |
| 237 | default: |
| 238 | return false; |
| 239 | } |
| 240 | } |
| 241 | |
| 242 | bool IsPlainOrBlockInstr(TokenType token_type) { |
| 243 | return IsPlainInstr(token_type) || IsBlockInstr(token_type); |
no outgoing calls
no test coverage detected