(s: &str)
| 347 | } |
| 348 | |
| 349 | pub fn write_ident_part(s: &str) -> Cow<'_, str> { |
| 350 | if valid_prql_ident().is_match(s) && !keywords().contains(s) { |
| 351 | s.into() |
| 352 | } else { |
| 353 | format!("`{s}`").into() |
| 354 | } |
| 355 | } |
| 356 | |
| 357 | impl WriteSource for Vec<pr::Stmt> { |
| 358 | fn write(&self, mut opt: WriteOpt) -> Option<String> { |
no test coverage detected