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

Function createScope

ark/aot/scope.ts:686–691  ·  view source on GitHub ↗
(node: Node, parent: Scope | undefined)

Source from the content-addressed store, hash-verified

684type ArrowFunctionNode = Extract<Node, { type: "ArrowFunctionExpression" }>
685
686const createScope = (node: Node, parent: Scope | undefined): Scope => ({
687 node,
688 parent,
689 bindings: Object.create(null),
690 unresolved: []
691})
692
693const varScopeKinds = {
694 FunctionDeclaration: 1,

Callers 2

constructorMethod · 0.85
inScopeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected