MCPcopy
hub / github.com/webpack/webpack / parseAListOfComponentValues

Function parseAListOfComponentValues

lib/css/syntax.js:2191–2197  ·  view source on GitHub ↗
(input, pos, options = {})

Source from the content-addressed store, hash-verified

2189 * @returns {ComponentValue[]} component values
2190 */
2191const parseAListOfComponentValues = (input, pos, options = {}) => {
2192 // 1. Normalize input, and set input to the result.
2193 const ts = normalizeIntoTokenStream(input, pos, options.comment);
2194 useObjectBackend(ts.locConverter);
2195 // 2. Consume a list of component values from input, and return the result.
2196 return consumeAListOfComponentValues(ts);
2197};
2198
2199/**
2200 * Parse a comma-separated list of component values, CSS Syntax Level 3 [§5.3.11](https://drafts.csswg.org/css-syntax/#parse-comma-list) — consumes one `<comma-token>`-stopped group of component values per iteration until EOF.

Callers 3

cvTypesFunction · 0.85

Calls 3

normalizeIntoTokenStreamFunction · 0.85
useObjectBackendFunction · 0.85

Tested by

no test coverage detected