MCPcopy Create free account
hub / github.com/WebAssembly/wabt / IsBlockInstr

Function IsBlockInstr

src/wast-parser.cc:229–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229bool 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
242bool IsPlainOrBlockInstr(TokenType token_type) {
243 return IsPlainInstr(token_type) || IsBlockInstr(token_type);

Callers 2

IsPlainOrBlockInstrFunction · 0.85
ParseInstrMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected