Normalize an owned identifier to a lowercase string, unless the identifier is quoted.
(id: Ident)
| 318 | |
| 319 | /// Normalize an owned identifier to a lowercase string, unless the identifier is quoted. |
| 320 | pub(crate) fn normalize_ident(id: Ident) -> String { |
| 321 | match id.quote_style { |
| 322 | Some(_) => id.value, |
| 323 | None => id.value.to_ascii_lowercase(), |
| 324 | } |
| 325 | } |
| 326 | |
| 327 | pub(crate) fn value_to_string(value: &Value) -> Option<String> { |
| 328 | match value { |
no outgoing calls
no test coverage detected
searching dependent graphs…