(parent: ParentReference, type: string)
| 13 | isPythonNode: true |
| 14 | |
| 15 | constructor(parent: ParentReference, type: string) { |
| 16 | super(parent, type) |
| 17 | this.isPythonNode = true |
| 18 | if (parent?.node && !isPythonNode(parent.node)) { |
| 19 | throw new Error(`Node ${type} must be a child of a PythonNode.`) |
| 20 | } |
| 21 | this.scope = null |
| 22 | } |
| 23 | |
| 24 | getScope(skipSelf = false): PythonScope { |
| 25 | if (!skipSelf && isScopedNodeType(this.type)) { |
nothing calls this directly
no test coverage detected