Module bare_expr

Module bare_expr 

Source
Expand description

Pass: bare expression statements β†’ _ = <expr>;

FunctionsΒ§

collect_bare_expr_stmt_edits πŸ”’
HLSL silently discards <expr>; statements that aren’t assignments or function calls β€” a typical typo for the user meaning expr = ... or expr += .... WGSL refuses with expected assignment or increment/decrement; found '-' (or *, etc.).
collect_in_stmt πŸ”’
needs_phony_wrap πŸ”’