MCPcopy Create free account
hub / github.com/arktypeio/arktype / nameContent

Function nameContent

ark/schema/units.ts:940–947  ·  view source on GitHub ↗
(
	roots: readonly BaseNode[],
	opts: UnitOptions
)

Source from the content-addressed store, hash-verified

938}
939
940const nameContent = (
941 roots: readonly BaseNode[],
942 opts: UnitOptions
943): ContentNamingState => {
944 const s = nameReferences(roots, {}, opts)
945 const occurrencesById = occurrencesOfResolutions(s)
946 return occurrencesById ? nameReferences(roots, occurrencesById, opts) : s
947}
948
949const nameReferences = (
950 roots: readonly BaseNode[],

Callers 1

precompileRootUnitsFunction · 0.85

Calls 2

nameReferencesFunction · 0.85
occurrencesOfResolutionsFunction · 0.85

Tested by

no test coverage detected