pub fn replace_node(
source: &str,
file: &RelativePath,
node: &NodeRef,
new_source: &str,
) -> Result<MutationResult, String>Expand description
Replace a node’s source text with new content.
pub fn replace_node(
source: &str,
file: &RelativePath,
node: &NodeRef,
new_source: &str,
) -> Result<MutationResult, String>Replace a node’s source text with new content.