This function can create an identifier with or without quotes based on the dialect rules
(&self, ident: String)
| 932 | |
| 933 | /// This function can create an identifier with or without quotes based on the dialect rules |
| 934 | pub(super) fn new_ident_quoted_if_needs(&self, ident: String) -> Ident { |
| 935 | let quote_style = self.dialect.identifier_quote_style(&ident); |
| 936 | Ident { |
| 937 | value: ident, |
| 938 | quote_style, |
| 939 | span: Span::empty(), |
| 940 | } |
| 941 | } |
| 942 | |
| 943 | pub(super) fn new_ident_without_quote_style(&self, str: String) -> Ident { |
| 944 | Ident { |
no test coverage detected