pub fn collect_async_functions(stmts: &[Stmt<'_>]) -> HashSet<Symbol>Expand description
Phase 54: Collect function names that are async. Used by LaunchTask codegen to determine if .await is needed.
Two-pass analysis:
- First pass: Collect directly async functions (have Sleep, LaunchTask, etc.)
- Second pass: Iterate until fixed point - if function calls an async function, mark it async