MCPcopy
hub / github.com/webpack/webpack / firstTokenType

Function firstTokenType

test/walkCssTokensParser.unittest.js:35–42  ·  view source on GitHub ↗
(src)

Source from the content-addressed store, hash-verified

33 * @returns {number} the first token's type
34 */
35const firstTokenType = (src) =>
36 /** @type {import("../lib/css/syntax").MutableToken} */ (
37 readToken(
38 src,
39 0,
40 /** @type {import("../lib/css/syntax").MutableToken} */ ({})
41 )
42 ).type;
43
44describe("walkCssTokens — component values (tokenToNode)", () => {
45 it("classifies each leaf token type", () => {

Callers 1

Calls 1

readTokenFunction · 0.85

Tested by

no test coverage detected