diff options
author | Aleksey Kladov <[email protected]> | 2020-05-02 10:50:43 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-05-02 10:53:07 +0100 |
commit | b73dbbfbf2cad646eb3f8e3342a1c390a874dc53 (patch) | |
tree | 34ca972a836d004c9e0b79960c062400f49d1459 /crates/ra_syntax | |
parent | b58dfd24f1bf1f30128fa9a78368b4d430e10e97 (diff) |
Add missing members generates indented blocks
Diffstat (limited to 'crates/ra_syntax')
-rw-r--r-- | crates/ra_syntax/src/ast/make.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/crates/ra_syntax/src/ast/make.rs b/crates/ra_syntax/src/ast/make.rs index b9a396cad..7b17fef49 100644 --- a/crates/ra_syntax/src/ast/make.rs +++ b/crates/ra_syntax/src/ast/make.rs | |||
@@ -82,14 +82,6 @@ pub fn block_expr( | |||
82 | ast_from_text(&format!("fn f() {}", buf)) | 82 | ast_from_text(&format!("fn f() {}", buf)) |
83 | } | 83 | } |
84 | 84 | ||
85 | pub fn block_from_expr(e: ast::Expr) -> ast::BlockExpr { | ||
86 | return from_text(&format!("{{ {} }}", e)); | ||
87 | |||
88 | fn from_text(text: &str) -> ast::BlockExpr { | ||
89 | ast_from_text(&format!("fn f() {}", text)) | ||
90 | } | ||
91 | } | ||
92 | |||
93 | pub fn expr_unit() -> ast::Expr { | 85 | pub fn expr_unit() -> ast::Expr { |
94 | expr_from_text("()") | 86 | expr_from_text("()") |
95 | } | 87 | } |