MCPcopy Create free account
hub / github.com/Stranger6667/css-inline / parse_block

Method parse_block

css-inline/src/parser.rs:40–47  ·  view source on GitHub ↗
(
        &mut self,
        prelude: Self::Prelude,
        _: &ParserState,
        input: &mut cssparser::Parser<'i, 't>,
    )

Source from the content-addressed store, hash-verified

38 }
39
40 fn parse_block<'t>(
41 &mut self,
42 prelude: Self::Prelude,
43 _: &ParserState,
44 input: &mut cssparser::Parser<'i, 't>,
45 ) -> Result<Self::QualifiedRule, cssparser::ParseError<'i, Self::Error>> {
46 Ok((prelude, parse_declarations_into(input, self.0)))
47 }
48}
49
50/// Parse a declaration within {} block: `color: blue`

Callers

nothing calls this directly

Calls 3

parse_declarations_intoFunction · 0.85
exhaustFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected