| 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" }> |