xo-parser: simplify: exprstate::on_singleassign drop retval

This commit is contained in:
Roland Conybeare 2024-08-01 13:07:33 +10:00
commit 909101cd8d
2 changed files with 2 additions and 5 deletions

View file

@ -237,7 +237,7 @@ namespace xo {
exprstatestack * p_stack,
rp<Expression> * p_emit_expr);
void on_colon(exprstatestack * p_stack);
expraction on_singleassign(exprstatestack * p_stack);
void on_singleassign(exprstatestack * p_stack);
void on_f64(const token_type & tk,
exprstatestack * p_stack,
rp<Expression> * p_emit_expr);

View file

@ -380,7 +380,7 @@ namespace xo {
}
}
expraction
void
exprstate::on_singleassign(exprstatestack * p_stack) {
constexpr bool c_debug_flag = true;
scope log(XO_DEBUG(c_debug_flag));
@ -398,11 +398,8 @@ namespace xo {
this->exs_type_ = exprstatetype::def_4;
p_stack->push_exprstate(exprstatetype::expect_rhs_expression);
return expraction::keep();
} else {
assert(false);
return expraction();
}
}