MCPcopy
hub / github.com/webpack/webpack / insertComment

Function insertComment

lib/html/syntax.js:4853–4856  ·  view source on GitHub ↗
(data, start, end, place)

Source from the content-addressed store, hash-verified

4851 * @param {InsertionPlace=} place explicit insertion place
4852 */
4853 const insertComment = (data, start, end, place) => {
4854 const p = place || appropriatePlace();
4855 insertAtPlace(p, { type: NodeType.Comment, data, start, end });
4856 };
4857
4858 const insertHtmlElement = (
4859 /** @type {string} */ tagName,

Callers 2

foreignContentFunction · 0.85
buildHtmlAstFunction · 0.85

Calls 2

appropriatePlaceFunction · 0.85
insertAtPlaceFunction · 0.85

Tested by

no test coverage detected