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

Method visitProperty

ark/aot/scope.ts:399–412  ·  view source on GitHub ↗
(
		node:
			| ObjectProperty
			| MethodDefinition
			| PropertyDefinition
			| AccessorProperty
	)

Source from the content-addressed store, hash-verified

397 }
398
399 private visitProperty(
400 node:
401 | ObjectProperty
402 | MethodDefinition
403 | PropertyDefinition
404 | AccessorProperty
405 ): void {
406 if (node.type !== "Property") this.visitAll(node.decorators, node)
407 if (node.computed) this.visit(node.key, node)
408 else node.key.parent = node
409 if (node.type === "Property" || node.type === "MethodDefinition")
410 return this.visit(node.value, node)
411 if (node.value) this.inScope(node, () => this.visit(node.value, node))
412 }
413
414 private visitVariables(
415 node: Extract<Node, { type: "VariableDeclaration" }>

Callers 1

visitMethod · 0.95

Calls 3

visitAllMethod · 0.95
visitMethod · 0.95
inScopeMethod · 0.95

Tested by

no test coverage detected