Module convert

Module convert 

Source
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_visitor module
StripData
Remove user data from an AST node
WithData
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