Add gen modifier to functions

We don't yet lower or maybe even parse them, but blocks already have `gen`, so why not.
This commit is contained in:
Chayim Refael Friedman 2024-08-22 14:27:35 +03:00
parent 506b9663bf
commit cc07652be5
9 changed files with 38 additions and 4 deletions

View file

@ -186,7 +186,7 @@ UseTreeList =
Fn =
Attr* Visibility?
'default'? 'const'? 'async'? 'unsafe'? Abi?
'default'? 'const'? 'async'? 'gen'? 'unsafe'? Abi?
'fn' Name GenericParamList? ParamList RetType? WhereClause?
(body:BlockExpr | ';')