(p: &mut Parser<'a, I>)
| 101 | |
| 102 | impl<'a> Parse<'a> for SupportsCondition<'a> { |
| 103 | fn parse<I>(p: &mut Parser<'a, I>) -> ParserResult<Self> |
| 104 | where |
| 105 | I: Iterator<Item = Cursor> + Clone, |
| 106 | { |
| 107 | if p.peek::<T![Function]>() || p.peek::<T!['(']>() { |
| 108 | return Ok(Self::Is(p.parse::<SupportsFeature>()?)); |
| 109 | } |
| 110 | Self::parse_condition(p) |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | #[derive(ToCursors, ToSpan, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] |