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

Function isPrimitiveNode

ark/aot/graph.ts:1035–1038  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

1033 (kind & (kinds.holder | kinds.unknown)) !== 0
1034
1035const isPrimitiveNode = (node: Node): boolean =>
1036 (node.type === "Literal" && !("regex" in node && node.regex)) ||
1037 node.type === "TemplateLiteral" ||
1038 node.type === "UnaryExpression"
1039
1040// e.g. `{ o, toString() { ... } }`, whose conversion calls a method with what it holds
1041const isMethodHolder = (node: Node): boolean =>

Callers 1

readsPrimitiveMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected