Migrate convert_bool_then to SyntaxEditor

Update assist docs
This commit is contained in:
Shoyu Vanilla 2025-03-01 03:57:58 +09:00
parent fe84446166
commit 37822d5917
4 changed files with 174 additions and 60 deletions

View file

@ -239,10 +239,10 @@ impl SyntaxMappingBuilder {
pub fn map_children(
&mut self,
input: impl Iterator<Item = SyntaxNode>,
output: impl Iterator<Item = SyntaxNode>,
input: impl IntoIterator<Item = SyntaxNode>,
output: impl IntoIterator<Item = SyntaxNode>,
) {
for pairs in input.zip_longest(output) {
for pairs in input.into_iter().zip_longest(output) {
let (input, output) = match pairs {
itertools::EitherOrBoth::Both(l, r) => (l, r),
itertools::EitherOrBoth::Left(_) => {