Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/syntax/src/ast/make.rs')
| -rw-r--r-- | crates/syntax/src/ast/make.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/syntax/src/ast/make.rs b/crates/syntax/src/ast/make.rs index d7a7d2d32a..5908dda8e6 100644 --- a/crates/syntax/src/ast/make.rs +++ b/crates/syntax/src/ast/make.rs @@ -81,6 +81,9 @@ pub mod ext { pub fn default_bool() -> ast::Expr { expr_from_text("false") } + pub fn option_none() -> ast::Expr { + expr_from_text("None") + } pub fn empty_block_expr() -> ast::BlockExpr { block_expr(None, None) } |