MCPcopy
hub / github.com/webpack/webpack / placeAt

Function placeAt

lib/html/syntax.js:4724–4731  ·  view source on GitHub ↗
(
		/** @type {HtmlElement | HtmlDocument | HtmlDocumentFragment} */ parent,
		/** @type {HtmlNode | null} */ beforeNode
	)

Source from the content-addressed store, hash-verified

4722 /** @type {InsertionPlace} */
4723 const sharedPlace = { parent: doc, beforeNode: null };
4724 const placeAt = (
4725 /** @type {HtmlElement | HtmlDocument | HtmlDocumentFragment} */ parent,
4726 /** @type {HtmlNode | null} */ beforeNode
4727 ) => {
4728 sharedPlace.parent = parent;
4729 sharedPlace.beforeNode = beforeNode;
4730 return sharedPlace;
4731 };
4732
4733 // "appropriate place for inserting a node"
4734 const appropriatePlace = () => {

Callers 1

appropriatePlaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected