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

Method isStart

deps/minimatch/index.js:563–578  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

561 return ret;
562 }
563 isStart() {
564 if (this.#root === this)
565 return true;
566 if (!this.#parent?.isStart())
567 return false;
568 if (this.#parentIndex === 0)
569 return true;
570 const p = this.#parent;
571 for (let i = 0; i < this.#parentIndex; i++) {
572 const pp = p.#parts[i];
573 if (!(pp instanceof _a && pp.type === "!")) {
574 return false;
575 }
576 }
577 return true;
578 }
579 isEnd() {
580 if (this.#root === this)
581 return true;

Callers 3

toJSONMethod · 0.80
toRegExpSourceMethod · 0.80
#partsToRegExpMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected