aboutsummaryrefslogtreecommitdiff
path: root/crates/syntax
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2021-05-10 13:25:56 +0100
committerAleksey Kladov <[email protected]>2021-05-10 13:25:56 +0100
commitbf26e13cd252a6337aa290adf842bf72e2523c4d (patch)
tree9970300ac753fa7856defc709a73fc886d55880c /crates/syntax
parentfd109fb587904cfecc1149e068814bfd38feb83c (diff)
simplify
Diffstat (limited to 'crates/syntax')
-rw-r--r--crates/syntax/src/ast/make.rs3
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"))