True if there are no bindings in the block.
(&self)
| 365 | } |
| 366 | /// True if there are no bindings in the block. |
| 367 | pub fn is_empty(&self) -> bool { |
| 368 | match self { |
| 369 | CteBlock::Simple(list) => list.is_empty(), |
| 370 | CteBlock::MutuallyRecursive(list) => list.ctes.is_empty(), |
| 371 | } |
| 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(); |
no outgoing calls