Function ra_ap_syntax::algo::replace_children[][src]

pub fn replace_children(
    parent: &SyntaxNode,
    to_delete: RangeInclusive<SyntaxElement>,
    to_insert: impl IntoIterator<Item = SyntaxElement>
) -> SyntaxNode
Expand description

Replaces all nodes in to_delete with nodes from to_insert

This is a type-unsafe low-level editing API, if you need to use it, prefer to create a type-safe abstraction on top of it instead.