aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_ssr/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ide_ssr/src/lib.rs')
-rw-r--r--crates/ide_ssr/src/lib.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/crates/ide_ssr/src/lib.rs b/crates/ide_ssr/src/lib.rs
index a97fc8bca..00585f448 100644
--- a/crates/ide_ssr/src/lib.rs
+++ b/crates/ide_ssr/src/lib.rs
@@ -57,7 +57,17 @@
57// 57//
58// | VS Code | **Rust Analyzer: Structural Search Replace** 58// | VS Code | **Rust Analyzer: Structural Search Replace**
59// |=== 59// |===
60//
61// Also available as an assist, by writing a comment containing the structural
62// search and replace rule. You will only see the assist if the comment can
63// be parsed as a valid structural search and replace rule.
64//
65// ```rust
66// // Place the cursor on the line below to see the assist 💡.
67// // foo($a, $b) ==>> ($a).foo($b)
68// ```
60 69
70mod from_comment;
61mod matching; 71mod matching;
62mod nester; 72mod nester;
63mod parsing; 73mod parsing;
@@ -71,6 +81,7 @@ mod tests;
71 81
72use crate::errors::bail; 82use crate::errors::bail;
73pub use crate::errors::SsrError; 83pub use crate::errors::SsrError;
84pub use crate::from_comment::ssr_from_comment;
74pub use crate::matching::Match; 85pub use crate::matching::Match;
75use crate::matching::MatchFailureReason; 86use crate::matching::MatchFailureReason;
76use hir::Semantics; 87use hir::Semantics;