add Expect ir::Stmt node

This commit is contained in:
Folkert 2022-05-26 16:46:10 +02:00
parent 70df1ff9c7
commit b29c7d6fb2
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
10 changed files with 239 additions and 17 deletions

View file

@ -439,6 +439,7 @@ fn stmt_spec<'a>(
builder.add_choice(block, &cases)
}
Expect { remainder, .. } => stmt_spec(builder, env, block, layout, remainder),
Ret(symbol) => Ok(env.symbols[symbol]),
Refcounting(modify_rc, continuation) => match modify_rc {
ModifyRc::Inc(symbol, _) => {