MCPcopy
hub / github.com/prettier/prettier / insertChildBefore

Method insertChildBefore

src/language-html/parse/ast.js:106–109  ·  view source on GitHub ↗

* @param {Node} [target] * @param {Object} [node]

(target, node)

Source from the content-addressed store, hash-verified

104 * @param {Object} [node]
105 */
106 insertChildBefore(target, node) {
107 const children = this.$children;
108 children.splice(children.indexOf(target), 0, this.createChild(node));
109 }
110
111 /**
112 * @param {Node} [child]

Callers 1

extractInterpolationFunction · 0.80

Calls 1

createChildMethod · 0.95

Tested by

no test coverage detected