MCPcopy
hub / github.com/webpack/webpack / consumeFullStop

Function consumeFullStop

lib/css/syntax.js:718–725  ·  view source on GitHub ↗

* `.` — number or delim. * @param {string} input input * @param {number} pos position just past `.` * @param {MutableToken} out token to populate * @returns {MutableToken | undefined} the resulting token, or undefined at EOF

(input, pos, out)

Source from the content-addressed store, hash-verified

716 * @returns {MutableToken | undefined} the resulting token, or undefined at EOF
717 */
718function consumeFullStop(input, pos, out) {
719 const start = pos - 1;
720 if (_ifThreeCodePointsWouldStartANumber(input, pos)) {
721 pos--;
722 return consumeANumericToken(input, pos, out);
723 }
724 return fill(out, TT_DELIM, start, pos);
725}
726
727/**
728 * `+` — number or delim.

Callers 1

consumeATokenFunction · 0.85

Calls 3

consumeANumericTokenFunction · 0.85
fillFunction · 0.85

Tested by

no test coverage detected