MCPcopy Create free account
hub / github.com/csskit/csskit / parse

Method parse

crates/css_ast/src/rules/supports.rs:103–111  ·  view source on GitHub ↗
(p: &mut Parser<'a, I>)

Source from the content-addressed store, hash-verified

101
102impl<'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)]

Callers

nothing calls this directly

Calls 3

ErrClass · 0.85
nextMethod · 0.45
bumpMethod · 0.45

Tested by

no test coverage detected