MCPcopy
hub / github.com/webpack/webpack / popUntil

Function popUntil

lib/html/syntax.js:5060–5066  ·  view source on GitHub ↗
(/** @type {string} */ tagName)

Source from the content-addressed store, hash-verified

5058 };
5059
5060 const popUntil = (/** @type {string} */ tagName) => {
5061 while (open.length) {
5062 const el = /** @type {HtmlElement} */ (open.pop());
5063 el.end = tokenEnd;
5064 if (el.namespace === NS_HTML && el.tagName === tagName) break;
5065 }
5066 };
5067 const popUntilOneOf = (/** @type {Set<string>} */ set) => {
5068 while (open.length) {
5069 const el = /** @type {HtmlElement} */ (open.pop());

Callers 3

buildHtmlAstFunction · 0.85
startTagInBodyFunction · 0.85
endTagInBodyFunction · 0.85

Calls 1

popMethod · 0.80

Tested by

no test coverage detected