MCPcopy
hub / github.com/webpack/webpack / parseABlocksContents

Function parseABlocksContents

lib/css/syntax.js:2100–2106  ·  view source on GitHub ↗
(input, pos, comment)

Source from the content-addressed store, hash-verified

2098 * @returns {{ decls: Declaration[], rules: Rule[] }} block decls + rules
2099 */
2100const parseABlocksContents = (input, pos, comment) => {
2101 // 1. Normalize input, and set input to the result.
2102 const ts = normalizeIntoTokenStream(input, pos, comment);
2103 useObjectBackend(ts.locConverter);
2104 // 2. Consume a block’s contents from input, and return the result.
2105 return consumeABlocksContents(ts);
2106};
2107
2108/**
2109 * Parse a rule, CSS Syntax Level 3

Callers 1

Calls 3

normalizeIntoTokenStreamFunction · 0.85
useObjectBackendFunction · 0.85
consumeABlocksContentsFunction · 0.85

Tested by

no test coverage detected