We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8a73a89 + f7f0f33 commit e5c07c3Copy full SHA for e5c07c3
crates/ra_syntax/src/algo.rs
@@ -329,17 +329,6 @@ enum Replacement {
329
Single(SyntaxElement),
330
}
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.
336
-pub fn _replace_descendants(
337
- parent: &SyntaxNode,
338
- map: impl Fn(&SyntaxElement) -> Option<SyntaxElement>,
339
-) -> SyntaxNode {
340
- SyntaxRewriter::from_fn(map).rewrite(parent)
341
-}
342
-
343
fn with_children(
344
parent: &SyntaxNode,
345
new_children: Vec<NodeOrToken<rowan::GreenNode, rowan::GreenToken>>,
0 commit comments