Iterates through the identifiers used in bindings.
(&self)
| 372 | } |
| 373 | /// Iterates through the identifiers used in bindings. |
| 374 | pub fn bound_identifiers(&self) -> impl Iterator<Item = &Ident> { |
| 375 | let mut names = Vec::new(); |
| 376 | match self { |
| 377 | CteBlock::Simple(list) => { |
| 378 | for cte in list.iter() { |
| 379 | names.push(&cte.alias.name); |
| 380 | } |
| 381 | } |
| 382 | CteBlock::MutuallyRecursive(MutRecBlock { options: _, ctes }) => { |
| 383 | for cte in ctes.iter() { |
| 384 | names.push(&cte.name); |
| 385 | } |
| 386 | } |
| 387 | } |
| 388 | names.into_iter() |
| 389 | } |
| 390 | } |
| 391 | |
| 392 | impl<T: AstInfo> AstDisplay for CteBlock<T> { |
no test coverage detected