xo-reader: refactor: move on_colon() for def-expr to define_xs.cpp

This commit is contained in:
Roland Conybeare 2024-08-08 13:32:02 -04:00
commit a3b8f778f2
3 changed files with 27 additions and 8 deletions

View file

@ -595,7 +595,7 @@ namespace xo {
}
void
exprstate::on_colon(exprstatestack * p_stack) {
exprstate::on_colon(exprstatestack * /*p_stack*/) {
constexpr bool c_debug_flag = true;
scope log(XO_DEBUG(c_debug_flag));
@ -609,13 +609,7 @@ namespace xo {
xtag("state", *this)));
}
if (this->exs_type_ == exprstatetype::def_1) {
this->exs_type_ = exprstatetype::def_2;
p_stack->push_exprstate(exprstate::expect_type());
} else {
assert(false);
}
assert(false);
}
void