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

Method annotatedKindOf

ark/aot/graph.ts:2080–2088  ·  view source on GitHub ↗
(
		node: Node,
		module: SourceModule,
		kindOfKey: KindOfKey
	)

Source from the content-addressed store, hash-verified

2078
2079 // e.g. unsure for `t: Type`, data for `s: JsonSchema`, none for `any`
2080 private annotatedKindOf(
2081 node: Node,
2082 module: SourceModule,
2083 kindOfKey: KindOfKey
2084 ): KindBits | undefined {
2085 return "typeAnnotation" in node && node.typeAnnotation ?
2086 this.typeKindOf(node.typeAnnotation, node, module, kindOfKey)
2087 : undefined
2088 }
2089
2090 private typeKindOf(
2091 type: TSType | TSTypeAnnotation,

Callers 6

keyKindOfMethod · 0.95
paramKindOfMethod · 0.95
unreadAnnotationOfMethod · 0.95
declaredParamKindOfMethod · 0.95
transferMethod · 0.95
passedMemberKindOfMethod · 0.95

Calls 1

typeKindOfMethod · 0.95

Tested by

no test coverage detected