xo-reader: refactor: move on_colon() for def-expr to define_xs.cpp
This commit is contained in:
parent
b6a94bb61c
commit
a3b8f778f2
3 changed files with 27 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue