MCPcopy
hub / github.com/webpack/webpack / discard

Method discard

lib/css/syntax.js:1985–1991  ·  view source on GitHub ↗

* Discard a token (CSS Syntax §3 "discard a token") — advance the cursor past * the next token without returning it. * @returns {void}

()

Source from the content-addressed store, hash-verified

1983 * @returns {void}
1984 */
1985 discard() {
1986 const t = this.next();
1987 if (t.type !== TT_EOF) {
1988 this._pos = t.end;
1989 this._next = undefined;
1990 }
1991 }
1992
1993 /**
1994 * Mark (CSS Syntax §3 "mark") — push the current cursor position.

Callers 12

parseARuleFunction · 0.80
parseADeclarationFunction · 0.80
parseAComponentValueFunction · 0.80
consumeAnAtRuleFunction · 0.80
consumeABlockFunction · 0.80
consumeABlocksContentsFunction · 0.80
consumeADeclarationFunction · 0.80
consumeASimpleBlockFunction · 0.80
consumeAFunctionFunction · 0.80

Calls 1

nextMethod · 0.95

Tested by

no test coverage detected