xo-reader: refactor: specialize admits_definition() for define_xs

This commit is contained in:
Roland Conybeare 2024-08-07 16:36:46 -04:00
commit 3f949dd3e4
3 changed files with 40 additions and 5 deletions

View file

@ -70,11 +70,7 @@ namespace xo {
case exprstatetype::def_3:
case exprstatetype::def_4:
case exprstatetype::def_5:
/* note for def_4:
* rhs could certainly be a function body that contains
* nested defines; but then immediately-enclosing-exprstate
* would be a block
*/
/* unreachable */
return false;
case exprstatetype::lparen_0:
case exprstatetype::lparen_1: