Return the AST node above the one we are processing
(self)
| 1934 | self.node_stack.pop() |
| 1935 | |
| 1936 | def parent(self) -> AST | None: |
| 1937 | """Return the AST node above the one we are processing""" |
| 1938 | if len(self.node_stack) < 2: |
| 1939 | return None |
| 1940 | return self.node_stack[-2] |
| 1941 | |
| 1942 | def fail(self, msg: ErrorMessage, line: int, column: int) -> None: |
| 1943 | if self.errors: |