Init implementation of structural search replace

This commit is contained in:
Mikhail Modin 2020-02-10 22:45:38 +00:00
parent 6fb36dfdcb
commit f8f454ab5c
10 changed files with 399 additions and 1 deletions

View file

@ -84,7 +84,7 @@ pub fn expr_prefix(op: SyntaxKind, expr: ast::Expr) -> ast::Expr {
let token = token(op);
expr_from_text(&format!("{}{}", token, expr.syntax()))
}
fn expr_from_text(text: &str) -> ast::Expr {
pub fn expr_from_text(text: &str) -> ast::Expr {
ast_from_text(&format!("const C: () = {};", text))
}