(&self, f: &mut Formatter<'_>)
| 376 | |
| 377 | #[cfg(feature = "egg")] |
| 378 | fn fmt_expanded(&self, f: &mut Formatter<'_>) -> Result { |
| 379 | let token = self.token(); |
| 380 | match token.kind() { |
| 381 | Kind::Whitespace => f.write_str(" "), |
| 382 | Kind::Ident | Kind::Function | Kind::AtKeyword | Kind::Hash => self.fmt_expanded_ident(f), |
| 383 | Kind::Number => self.fmt_expanded_number(f), |
| 384 | Kind::Dimension => { |
| 385 | self.fmt_expanded_number(f)?; |
| 386 | self.fmt_expanded_ident(f) |
| 387 | } |
| 388 | Kind::Url => self.fmt_expanded_url(f), |
| 389 | _ => f.write_str(self.source), |
| 390 | } |
| 391 | } |
| 392 | |
| 393 | #[cfg(feature = "egg")] |
| 394 | fn fmt_expanded_number(&self, f: &mut Formatter<'_>) -> Result { |
no test coverage detected