Returns the most recently generated flatten alias, or `None` if `next_flatten_alias` has not been called yet.
(&self)
| 198 | /// Returns the most recently generated flatten alias, or `None` if |
| 199 | /// `next_flatten_alias` has not been called yet. |
| 200 | pub fn current_flatten_alias(&self) -> Option<String> { |
| 201 | if self.flatten_alias_counter > 0 { |
| 202 | Some(format!( |
| 203 | "{FLATTEN_ALIAS_PREFIX}_{}", |
| 204 | self.flatten_alias_counter |
| 205 | )) |
| 206 | } else { |
| 207 | None |
| 208 | } |
| 209 | } |
| 210 | |
| 211 | pub fn distinct(&mut self, value: Option<ast::Distinct>) -> &mut Self { |
| 212 | self.distinct = value; |
no outgoing calls
no test coverage detected