expect_type_xs: refactor: simplify api

This commit is contained in:
Roland Conybeare 2024-08-18 23:47:47 -04:00
commit 2b6b15480e
4 changed files with 12 additions and 3 deletions

View file

@ -60,7 +60,8 @@ namespace xo {
{
if (this->formalxs_type_ == formalstatetype::formal_1) {
this->formalxs_type_ = formalstatetype::formal_2;
p_stack->push_exprstate(expect_type_xs::make());
expect_type_xs::start(p_stack);
/* control reenters via expect_formal_xs::on_typedescr() */
} else {
exprstate::on_colon_token(tk,
p_stack);