Skip to content

Commit eb6cfa7

Browse files
7526: Renamed create ssr to ide_ssr.
1 parent e4756cb commit eb6cfa7

File tree

16 files changed

+25
-24
lines changed

16 files changed

+25
-24
lines changed

Cargo.lock

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/ide/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ cfg = { path = "../cfg", version = "0.0.0" }
2828
profile = { path = "../profile", version = "0.0.0" }
2929
test_utils = { path = "../test_utils", version = "0.0.0" }
3030
ide_assists = { path = "../ide_assists", version = "0.0.0" }
31-
ssr = { path = "../ssr", version = "0.0.0" }
31+
ide_ssr = { path = "../ide_ssr", version = "0.0.0" }
3232
ide_completion = { path = "../ide_completion", version = "0.0.0" }
3333

3434
# ide should depend only on the top-level `hir` package. if you need

crates/ide/src/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ pub use ide_db::{
101101
symbol_index::Query,
102102
RootDatabase,
103103
};
104-
pub use ssr::SsrError;
104+
pub use ide_ssr::SsrError;
105105
pub use syntax::{TextRange, TextSize};
106106
pub use text_edit::{Indel, TextEdit};
107107

@@ -549,8 +549,9 @@ impl Analysis {
549549
selections: Vec<FileRange>,
550550
) -> Cancelable<Result<SourceChange, SsrError>> {
551551
self.with_db(|db| {
552-
let rule: ssr::SsrRule = query.parse()?;
553-
let mut match_finder = ssr::MatchFinder::in_context(db, resolve_context, selections);
552+
let rule: ide_ssr::SsrRule = query.parse()?;
553+
let mut match_finder =
554+
ide_ssr::MatchFinder::in_context(db, resolve_context, selections);
554555
match_finder.add_rule(rule)?;
555556
let edits = if parse_only { Default::default() } else { match_finder.edits() };
556557
Ok(SourceChange::from(edits))

crates/ssr/Cargo.toml renamed to crates/ide_ssr/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "ssr"
2+
name = "ide_ssr"
33
version = "0.0.0"
44
description = "Structural search and replace of Rust code"
55
license = "MIT OR Apache-2.0"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)