xo-reader: simplify expect_type_xs.start() using psm

This commit is contained in:
Roland Conybeare 2024-08-19 16:50:58 -04:00
commit e74e55832e
4 changed files with 5 additions and 9 deletions

View file

@ -112,12 +112,10 @@ namespace xo {
//constexpr const char * self_name = "define_xs::on_colon_token";
auto p_stack = p_psm->p_stack_;
if (this->defxs_type_ == defexprstatetype::def_2) {
this->defxs_type_ = defexprstatetype::def_3;
expect_type_xs::start(p_stack);
expect_type_xs::start(p_psm);
} else {
exprstate::on_colon_token(tk, p_psm);
}