MCPcopy
hub / github.com/webpack/webpack / parseAStylesheetsContents

Function parseAStylesheetsContents

lib/css/syntax.js:2084–2090  ·  view source on GitHub ↗
(input, comment)

Source from the content-addressed store, hash-verified

2082 * @returns {Rule[]} top-level rules
2083 */
2084const parseAStylesheetsContents = (input, comment) => {
2085 // 1. Normalize input, and set input to the result.
2086 const ts = normalizeIntoTokenStream(input, 0, comment);
2087 useObjectBackend(ts.locConverter);
2088 // 2. Consume a stylesheet’s contents from input, and return the result.
2089 return consumeAStylesheetsContents(ts);
2090};
2091
2092/**
2093 * Parse a block's contents, CSS Syntax Level 3

Callers 1

Calls 3

normalizeIntoTokenStreamFunction · 0.85
useObjectBackendFunction · 0.85

Tested by

no test coverage detected