diff options
author | Aleksey Kladov <[email protected]> | 2021-05-10 13:25:56 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-05-10 13:25:56 +0100 |
commit | bf26e13cd252a6337aa290adf842bf72e2523c4d (patch) | |
tree | 9970300ac753fa7856defc709a73fc886d55880c /crates/syntax | |
parent | fd109fb587904cfecc1149e068814bfd38feb83c (diff) |
simplify
Diffstat (limited to 'crates/syntax')
-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 a378b1d37..1998ad1f6 100644 --- a/crates/syntax/src/ast/make.rs +++ b/crates/syntax/src/ast/make.rs | |||
@@ -31,6 +31,9 @@ pub mod ext { | |||
31 | pub fn expr_todo() -> ast::Expr { | 31 | pub fn expr_todo() -> ast::Expr { |
32 | expr_from_text("todo!()") | 32 | expr_from_text("todo!()") |
33 | } | 33 | } |
34 | pub fn empty_block_expr() -> ast::BlockExpr { | ||
35 | block_expr(None, None) | ||
36 | } | ||
34 | 37 | ||
35 | pub fn ty_bool() -> ast::Type { | 38 | pub fn ty_bool() -> ast::Type { |
36 | ty_path(ident_path("bool")) | 39 | ty_path(ident_path("bool")) |