Module ast_expand

Source

Functions§

expand_expr
An AST pass that maps AST to PL.
expand_module_def
restrict_annotation
restrict_expr
An AST pass that tries to revert the mapping from AST to PL
restrict_module
restrict_module_def
restrict_null_literal
Returns None if the Expr is a null literal and Some(expr) otherwise.
try_restrict_range
Restricts a tuple of form {start=a, end=b} into a range a..b.