Legend:
Library
Module
Module type
Parameter
Class
Class type
expression visitor.
A class for observing expression trees.
Visits AST providing lots of hooks.
For each AST constructor C the visitor provides three methods: enter_C, visit_C, leave_C. The default implementation for enter_C and leave_C is to return its argument. The default implementation for visit_C is the following: 1. call enter_C 2. visit all children 3. call leave_C.
It is recommended to override enter_C method if you only need to visit C constructor without changing a way you're visiting the tree.
See also Bil.visitor and Term.visitor for visiting a program in AST and Graph representation, respectively.