MCPcopy Index your code
hub / github.com/nodejs/node / clone

Method clone

deps/minimatch/index.js:597–603  ·  view source on GitHub ↗
(parent)

Source from the content-addressed store, hash-verified

595 this.push(part.clone(this));
596 }
597 clone(parent) {
598 const c = new _a(this.type, parent);
599 for (const p of this.#parts) {
600 c.copyIn(p);
601 }
602 return c;
603 }
604 static #parseAST(str, ast, pos, opt, extDepth) {
605 const maxDepth = opt.maxExtglobRecursion ?? 2;
606 let escaping = false;

Callers 8

createProgramFunction · 0.45
cloneFunction · 0.45
cloneBuilderProgramStateFunction · 0.45
cloneCompilerOptionsFunction · 0.45
getUsageInfoFunction · 0.45
copyInMethod · 0.45

Calls 1

copyInMethod · 0.80

Tested by

no test coverage detected