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

Method push

deps/minimatch/index.js:544–553  ·  view source on GitHub ↗
(...parts)

Source from the content-addressed store, hash-verified

542 return this;
543 }
544 push(...parts) {
545 for (const p of parts) {
546 if (p === "")
547 continue;
548 if (typeof p !== "string" && !(p instanceof _a && p.#parent === this)) {
549 throw new Error("invalid part: " + p);
550 }
551 this.#parts.push(p);
552 }
553 }
554 toJSON() {
555 const ret = this.type === null ? this.#parts.slice().map((p) => typeof p === "string" ? p : p.toJSON()) : [this.type, ...this.#parts.map((p) => p.toJSON())];
556 if (this.isStart() && !this.type)

Callers 14

rangeFunction · 0.45
expand_Function · 0.45
parseClassFunction · 0.45
constructorMethod · 0.45
toJSONMethod · 0.45
copyInMethod · 0.45
#parseASTMethod · 0.45
#adoptWithSpaceMethod · 0.45
matchFunction · 0.45
levelOneOptimizeMethod · 0.45
firstPhasePreProcessMethod · 0.45
partsMatchMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected