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

Function readChecker

ark/type/standalone/combinators.ts:1070–1074  ·  view source on GitHub ↗
(js: CombinatorCompiler, node: BaseRoot)

Source from the content-addressed store, hash-verified

1068}
1069
1070const readChecker = (js: CombinatorCompiler, node: BaseRoot): string =>
1071 isInlined(node) ? writeCombinator(js, node)!
1072 : node.hasAlias && !combines(node) ?
1073 writeCall("compiled", js.ref(node), node.tfs ? "1" : undefined)
1074 : js.refToId(node.id, { kind: node.allowsCtx ? "Apply" : "Allows" })
1075
1076const readValue = (js: CombinatorCompiler, node: BaseRoot): string =>
1077 node.hasAlias ?

Callers 6

writeStructureFunction · 0.85
readValueFunction · 0.85
readCaseFunction · 0.85
writeCombinatorFunction · 0.85
writeMorphFunction · 0.85

Calls 6

isInlinedFunction · 0.85
writeCombinatorFunction · 0.85
combinesFunction · 0.85
writeCallFunction · 0.85
refToIdMethod · 0.65
refMethod · 0.45

Tested by

no test coverage detected