MCPcopy
hub / github.com/webpack/webpack / normalizeIntoTokenStream

Function normalizeIntoTokenStream

lib/css/syntax.js:2034–2037  ·  view source on GitHub ↗
(input, pos, onComment)

Source from the content-addressed store, hash-verified

2032 * @returns {TokenStream} the stream to consume from
2033 */
2034const normalizeIntoTokenStream = (input, pos, onComment) =>
2035 input instanceof TokenStream
2036 ? input
2037 : new TokenStream(input, pos || 0, new LocConverter(input), onComment);
2038
2039// === Parser entry points (CSS Syntax Level 3 §5.3) ===
2040// Each `parseA*` is a thin public wrapper over a `consumeA*` algorithm

Callers 8

parseAStylesheetFunction · 0.85
parseABlocksContentsFunction · 0.85
parseARuleFunction · 0.85
parseADeclarationFunction · 0.85
parseAComponentValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected