parent property

Node? parent
getter/setter pair

The parent of this node, or null if this is the Program node.

If you transform the AST in any way, it is your own responsibility to update parent pointers accordingly.

Implementation

Node? parent;