Expand description
Conversion utilities for AST nodes with user data Conversion utilities for AST nodes with user data
This module provides traits and functions for converting between different AST representations with and without user data.
Traits§
- MapData
- Transform user data type in an AST node
NOTE: Replaced by visitor-based approach in
map_data_visitormodule - Strip
Data - Remove user data from an AST node
- With
Data - Add user data to an AST node
Functions§
- from_
generic - Convert from generic AST with unit type to regular AST
- to_
generic - Convert from regular AST to generic AST with unit type