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

Function keyOf

ark/aot/unwrite.ts:461–463  ·  view source on GitHub ↗
({ texts }: ModuleTokens)

Source from the content-addressed store, hash-verified

459// a statement's tokens, but for the semicolon a transform ends it with
460const keyOf =
461 ({ texts }: ModuleTokens) =>
462 ([start, end]: StatementTokens): string =>
463 texts.slice(start, texts[end - 1] === ";" ? end - 1 : end).join("\0")
464
465const opensValue = /^[(={]$/
466

Callers 1

diffFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected