Module lower

Source
Expand description

Transforms ast::Expr into an equivalent hir_def::expr::Expr representation.

Structs§

ExprCollector

Functions§

hir_assoc_type_binding_to_ast
This function find the AST fragment that corresponds to an AssociatedTypeBinding in the HIR.
hir_generic_arg_to_ast
This function find the AST generic argument from the one in the HIR. Does not support the Self argument.
hir_segment_to_ast_segment
This function finds the AST segment that corresponds to the HIR segment with index segment_idx on the path that is lowered from path.