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

Method visitClass

ark/aot/scope.ts:385–397  ·  view source on GitHub ↗
(node: Class)

Source from the content-addressed store, hash-verified

383 }
384
385 private visitClass(node: Class): void {
386 if (node.declare) return
387 if (node.type === "ClassDeclaration" && node.id)
388 this.bind(node.id, "class", node, node)
389 this.visitAll(node.decorators, node)
390 this.inScope(node, () => {
391 if (node.type === "ClassExpression" && node.id)
392 this.bind(node.id, "class", node, node)
393 this.visit(node.superClass, node)
394 node.body.parent = node
395 for (const element of node.body.body) this.visit(element, node.body)
396 })
397 }
398
399 private visitProperty(
400 node:

Callers 1

visitMethod · 0.95

Calls 4

bindMethod · 0.95
visitAllMethod · 0.95
inScopeMethod · 0.95
visitMethod · 0.95

Tested by

no test coverage detected