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

Function parse_declarations_into

css-inline/src/parser.rs:166–177  ·  view source on GitHub ↗
(
    input: &mut cssparser::Parser<'i, '_>,
    declarations: &mut Vec<Declaration<'i>>,
)

Source from the content-addressed store, hash-verified

164}
165
166fn parse_declarations_into<'i>(
167 input: &mut cssparser::Parser<'i, '_>,
168 declarations: &mut Vec<Declaration<'i>>,
169) -> (usize, usize) {
170 let mut parser = CSSDeclarationListParser;
171 let parser = cssparser::RuleBodyParser::new(input, &mut parser);
172 let start = declarations.len();
173 for item in parser.flatten() {
174 declarations.push(item);
175 }
176 (start, declarations.len())
177}

Callers 1

parse_blockMethod · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected