parent property

AstNode? get parent

Returns this node's parent node, or null if this node is the root of an AST structure.

Note that the relationship between an AST node and its parent node may change over the lifetime of a node.

Implementation

AstNode? get parent;