(&self)
| 854 | /// If the [Token] is not a [Kind::String] this will return [QuoteStyle::None]. |
| 855 | #[inline] |
| 856 | pub fn quote_style(&self) -> QuoteStyle { |
| 857 | if self.kind_bits() == Kind::String as u8 { |
| 858 | if self.third_flag() { |
| 859 | return QuoteStyle::Double; |
| 860 | } else { |
| 861 | return QuoteStyle::Single; |
| 862 | } |
| 863 | } |
| 864 | QuoteStyle::None |
| 865 | } |
| 866 | |
| 867 | /// Returns a new [Token] with the [QuoteStyle] set to the given [QuoteStyle], if possible. |
| 868 | /// |
no test coverage detected