MCPcopy
hub / github.com/webpack/webpack / consumeSpace

Function consumeSpace

lib/css/syntax.js:613–617  ·  view source on GitHub ↗

* Whitespace token. Caller advances past the leading code point so * `start = pos - 1`. * @param {string} input input * @param {number} pos position just past the first whitespace code point * @param {MutableToken} out token to populate * @returns {MutableToken | undefined} the resulting token,

(input, pos, out)

Source from the content-addressed store, hash-verified

611 * @returns {MutableToken | undefined} the resulting token, or undefined at EOF
612 */
613function consumeSpace(input, pos, out) {
614 const start = pos - 1;
615 while (_isWhiteSpace(input.charCodeAt(pos))) pos++;
616 return fill(out, TT_WHITESPACE, start, pos);
617}
618
619/**
620 * Consume a string token. Caller advanced past the opening quote so

Callers 1

consumeATokenFunction · 0.85

Calls 2

_isWhiteSpaceFunction · 0.85
fillFunction · 0.85

Tested by

no test coverage detected