MCPcopy
hub / github.com/webpack/webpack / skipFn

Function skipFn

test/walkHtmlTokens.unittest.js:2008–2019  ·  view source on GitHub ↗
(/** @type {string} */ label)

Source from the content-addressed store, hash-verified

2006 const out = [];
2007 const skipFn =
2008 (/** @type {string} */ label) =>
2009 (
2010 /** @type {string} */ input,
2011 /** @type {number} */ start,
2012 /** @type {number} */ end,
2013 /** @type {number} */ ns,
2014 /** @type {number} */ ne
2015 ) => {
2016 out.push([label, input.slice(ns, ne)]);
2017 // Skip one character past `>` so nextPos > end.
2018 return end + 1;
2019 };
2020 walkHtmlTokens(
2021 "<script>x</script>" +
2022 "<a foo>y</a>" +

Callers 1

Calls 2

sliceMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected