MCPcopy
hub / github.com/webpack/webpack / _soaValueOf

Function _soaValueOf

lib/css/syntax.js:1796–1803  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

1794 * @returns {string} raw token value
1795 */
1796const _soaValueOf = (i) => {
1797 const ty = _soaTy[i];
1798 if (ty === T_HASH || ty === T_AT_KEYWORD) {
1799 return _soaInput.slice(_soaSt[i] + 1, _soaEn[i]);
1800 }
1801 if (ty === T_URL) return _soaInput.slice(_soaA0[i], _soaA1[i]);
1802 return _soaInput.slice(_soaSt[i], _soaEn[i]);
1803};
1804/**
1805 * @param {string} input source
1806 * @param {LocConverter} lc loc converter

Callers 2

useSoaBackendFunction · 0.85
syntax.jsFile · 0.85

Calls 1

sliceMethod · 0.80

Tested by

no test coverage detected