Skip to main content

Module expansion

Module expansion 

Source

Structs§

ExpnNode 🔒
ExpnTree 🔒
MinMaxBcbs 🔒
SpanWithBcb 🔒

Functions§

build_expn_tree 🔒
Extracts raw span/BCB pairs from potentially-different syntax contexts, and arranges them into an “expansion tree” based on their expansion call-sites.
minmax_bcbs_for_expn_tree_node 🔒
For a single node in the expansion tree, compute its “minimum” and “maximum” BCBs (in dominator order), from among the BCBs of its immediate spans, and the min/max of its immediate children.
sort_nodes_depth_first 🔒
Sorts the tree nodes in the map into depth-first order.