Abstract
Optional
visitOptional
visitOptional
visitOptional
visitOptional
visitOptional
visitOptional
visitOptional
visitOptional
visitOptional
visitOptional
visitOptional
visitOptional
visitOptional
visitOptional
visitOptional
visitOptional
visitOptional
visitOptional
visitOptional
visitOptional
visitOptional
visitOptional
visitOptional
visit
A read-and-write visitor.
Subclasses can be used to modify an AST in-place.
To handle specific node types add methods like
visitPattern
. Then, to descend into children callgenericVisit
.Visiting methods must implement the following interface:
The returned node will replace the original one in the AST. Return
undefined
to remove the node instead.