(p: &mut Parser<'a, I>)
| 99 | |
| 100 | impl<'a> Parse<'a> for StyleFeature<'a> { |
| 101 | fn parse<I>(p: &mut Parser<'a, I>) -> ParserResult<Self> |
| 102 | where |
| 103 | I: Iterator<Item = Cursor> + Clone, |
| 104 | { |
| 105 | let c = p.peek_n(1); |
| 106 | if c == Kind::Ident && c.token().is_dashed_ident() && p.peek_n(2) != Kind::Colon { |
| 107 | return Ok(Self::CustomProperty(p.parse::<T![Ident]>()?)); |
| 108 | } |
| 109 | let decl = p.parse::<Declaration<'a, StyleValue<'a>, CssMetadata>>()?; |
| 110 | Ok(Self::Declaration(BumpBox::new_in(p.bump(), decl))) |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | impl<'a> FeatureConditionList<'a> for StyleQuery<'a> { |
nothing calls this directly
no test coverage detected