aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_syntax/src/algo.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/crates/ra_syntax/src/algo.rs b/crates/ra_syntax/src/algo.rs
index 4d463a3ef..191123c8e 100644
--- a/crates/ra_syntax/src/algo.rs
+++ b/crates/ra_syntax/src/algo.rs
@@ -329,17 +329,6 @@ enum Replacement {
329 Single(SyntaxElement), 329 Single(SyntaxElement),
330} 330}
331 331
332/// Replaces descendants in the node, according to the mapping.
333///
334/// This is a type-unsafe low-level editing API, if you need to use it, prefer
335/// to create a type-safe abstraction on top of it instead.
336pub fn _replace_descendants(
337 parent: &SyntaxNode,
338 map: impl Fn(&SyntaxElement) -> Option<SyntaxElement>,
339) -> SyntaxNode {
340 SyntaxRewriter::from_fn(map).rewrite(parent)
341}
342
343fn with_children( 332fn with_children(
344 parent: &SyntaxNode, 333 parent: &SyntaxNode,
345 new_children: Vec<NodeOrToken<rowan::GreenNode, rowan::GreenToken>>, 334 new_children: Vec<NodeOrToken<rowan::GreenNode, rowan::GreenToken>>,