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

Function isFunctionNode

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

Source from the content-addressed store, hash-verified

7141 node.type === "RestElement"
7142
7143export const isFunctionNode = (node: Node): node is FunctionNode =>
7144 node.type === "ArrowFunctionExpression" ||
7145 node.type === "FunctionExpression" ||
7146 node.type === "FunctionDeclaration"
7147
7148// e.g. `t.describe("short")` in `{ const t = type("string"); return t.describe("short") }`
7149export const staticBodyOf = (fn: FunctionNode): Node | undefined => {

Callers 15

declareUnsetMethod · 0.90
placeAmongNamedMethod · 0.90
runPointOfFunction · 0.90
isRunAtLoadByFunction · 0.90
runsOnceInFunction · 0.90
methodOfMethod · 0.90
bindingValueOfMethod · 0.90
returnsOfFunction · 0.90
isRepeatedFunction · 0.90
runsAsItsModuleLoadsFunction · 0.90
isInertValueMethod · 0.90
createsOnCallMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected