MCPcopy Index your code
hub / github.com/arktypeio/arktype / stringifyAncestors

Method stringifyAncestors

ark/util/path.ts:101–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99 }
100
101 stringifyAncestors(): readonly string[] {
102 if (this.cache.stringifyAncestors) return this.cache.stringifyAncestors
103 let propString = ""
104 const result: string[] = [propString]
105 for (const path of this) {
106 propString = appendStringifiedKey(propString, path)
107 result.push(propString)
108 }
109 return (this.cache.stringifyAncestors = result)
110 }
111}

Callers 2

affectsPathMethod · 0.80
addAncestorPathsMethod · 0.80

Calls 1

appendStringifiedKeyFunction · 0.85

Tested by

no test coverage detected