MCPcopy Index your code
hub / github.com/nodejs/node / #adoptWithSpace

Method #adoptWithSpace

deps/minimatch/index.js:729–735  ·  view source on GitHub ↗
(child, index)

Source from the content-addressed store, hash-verified

727 return !!map.get(this.type)?.includes(c);
728 }
729 #adoptWithSpace(child, index) {
730 const gc = child.#parts[0];
731 const blank = new _a(null, gc, this.options);
732 blank.#parts.push("");
733 gc.push(blank);
734 this.#adopt(child, index);
735 }
736 #adopt(child, index) {
737 const gc = child.#parts[0];
738 this.#parts.splice(index, 1, ...gc.#parts);

Callers 1

#flattenMethod · 0.80

Calls 2

#adoptMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected