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

Function isCheckerIn

ark/type/standalone/compilers.ts:853–854  ·  view source on GitHub ↗
(unit: RootUnit, root: BaseRoot)

Source from the content-addressed store, hash-verified

851// a unit is compiled by the variant of the root it was reached from, which
852// needn't be the one its own roots would pick
853export const isCheckerIn = (unit: RootUnit, root: BaseRoot): boolean =>
854 isChecker(root, variantsOfUnits.get(unit)!)
855
856// a pass can reach content-equal roots, which share a name but not a unit
857export const unitOf = (node: BaseNode, reader: RootUnit): RootUnit =>

Callers 2

isCheckerNodeMethod · 0.90
addIssueFeaturesFunction · 0.90

Calls 2

isCheckerFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected