Add gen blocks to ast and do some broken ast lowering

This commit is contained in:
Oli Scherer
2023-10-20 21:26:57 +00:00
parent 14423080f1
commit 621494382d
21 changed files with 131 additions and 56 deletions

View File

@@ -285,7 +285,7 @@ pub enum ExprPrecedence {
Block,
TryBlock,
Struct,
Async,
Gen,
Await,
Err,
}
@@ -351,7 +351,7 @@ impl ExprPrecedence {
| ExprPrecedence::ConstBlock
| ExprPrecedence::Block
| ExprPrecedence::TryBlock
| ExprPrecedence::Async
| ExprPrecedence::Gen
| ExprPrecedence::Struct
| ExprPrecedence::Err => PREC_PAREN,
}