Find the parent of a target node in the AST.
Uses reference equality (===) to identify the target, so the target must be a reference obtained from the same AST object graph (e.g. via findFirst() or findAll()).
===
findFirst()
findAll()
The parent Expression, or null if target is the root or not found.
null
Find the parent of a target node in the AST.
Uses reference equality (
===) to identify the target, so the target must be a reference obtained from the same AST object graph (e.g. viafindFirst()orfindAll()).