diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-02-17 10:02:54 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-17 10:02:54 +0000 |
commit | 93d28fb50c8496d00bfb457a42fb5ee66f83d7b5 (patch) | |
tree | 47a1d15302d542932af992d5243640fff88aa0a4 /crates/ra_syntax/src | |
parent | 429fa445b7aa4dcea8c2456aeb07321fe22c000a (diff) | |
parent | f8f454ab5c19c6e7d91b3a4e6bb63fb9bf5f2673 (diff) |
Merge #3099
3099: Init implementation of structural search replace r=matklad a=mikhail-m1
next steps:
* ignore space and other minor difference
* add support to ra_cli
* call rust parser to check pattern
* documentation
original issue #2267
Co-authored-by: Mikhail Modin <[email protected]>
Diffstat (limited to 'crates/ra_syntax/src')
-rw-r--r-- | crates/ra_syntax/src/ast/make.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/ast/make.rs b/crates/ra_syntax/src/ast/make.rs index 862eb1172..89d1403e7 100644 --- a/crates/ra_syntax/src/ast/make.rs +++ b/crates/ra_syntax/src/ast/make.rs | |||
@@ -84,7 +84,7 @@ pub fn expr_prefix(op: SyntaxKind, expr: ast::Expr) -> ast::Expr { | |||
84 | let token = token(op); | 84 | let token = token(op); |
85 | expr_from_text(&format!("{}{}", token, expr.syntax())) | 85 | expr_from_text(&format!("{}{}", token, expr.syntax())) |
86 | } | 86 | } |
87 | fn expr_from_text(text: &str) -> ast::Expr { | 87 | pub fn expr_from_text(text: &str) -> ast::Expr { |
88 | ast_from_text(&format!("const C: () = {};", text)) | 88 | ast_from_text(&format!("const C: () = {};", text)) |
89 | } | 89 | } |
90 | 90 | ||