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

Function inputOf

ark/schema/units.ts:1180–1184  ·  view source on GitHub ↗
(
		member: ContentReference,
		labelOf: (position: number) => string
	)

Source from the content-addressed store, hash-verified

1178 const positionsById: Record<NodeId, number> = {}
1179 for (let i = 0; i < members.length; i++) positionsById[members[i].node.id] = i
1180 const inputOf = (
1181 member: ContentReference,
1182 labelOf: (position: number) => string
1183 ) =>
1184 `${member.content}\n${member.callees.map(callee => s.names[callee.id] ?? labelOf(positionsById[callee.id]))}`
1185 let labels = members.map(member => hashOf(inputOf(member, () => "#")))
1186 for (let round = 1; round < members.length; round++) {
1187 const refined = members.map(member =>

Callers 1

nameComponentFunction · 0.70

Calls 2

mapMethod · 0.65
labelOfFunction · 0.50

Tested by

no test coverage detected