Skip to main content

conditional_paths

Function conditional_paths 

Source
pub fn conditional_paths(
    source: &str,
    tokens: &[Token],
    dialect: &Dialect,
) -> Vec<ArmPath>
Expand description

Record the preprocessor arm active at each token.

Directives never become clone content, but their nesting determines whether two otherwise-equal C-family snippets can coexist in one build. This pass intentionally recognises only literal 0 / 1 conditions; macro and expression evaluation belongs to a compiler frontend, not Fast mode.