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

Function isFunction

ark/aot/flat.ts:2496–2501  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

2494}
2495
2496const isFunction = (node: Node) =>
2497 node.type === "ArrowFunctionExpression" ||
2498 node.type === "FunctionExpression" ||
2499 node.type === "FunctionDeclaration" ||
2500 node.type === "ClassExpression" ||
2501 node.type === "ClassDeclaration"
2502
2503// a token can't run across the text between two spans
2504const spansContaining = (

Callers 1

isFactoryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected