pub fn process(
    ast: &iec_syntax::File,
    ctx: &mut PassContext<'_>,
) -> CompilationUnit {
    let mut resources = Resources::new();

    run_pass::<RegisterBuiltins>(&mut resources, &(), ctx);
    run_pass::<SymbolTableResolution>(&mut resources, ast, ctx);
    run_pass::<VariableDiscovery>(&mut resources, ast, ctx);
    run_pass::<BasicBlocks>(&mut resources, ast, ctx);

    CompilationUnit { resources }
}
/// Process the provided AST and execute semantic analysis.
Process the provided AST and execute semantic analysis.
Process the provided AST and execute semantic analysis .
pub fn process(
    ast: &iec_syntax::File,
    ctx: &mut PassContext<'_>,
) -> CompilationUnit {
    let mut resources = Resources::new();
    run_pass::<RegisterBuiltins>(&mut resources, &(), ctx);
    run_pass::<SymbolTableResolution>(&mut resources, ast, ctx);
    run_pass::<VariableDiscovery>(&mut resources, ast, ctx);
    run_pass::<BasicBlocks>(&mut resources, ast, ctx);
    CompilationUnit { resources }
}
pub fn process ( ast : & iec_syntax :: File , ctx : & mut PassContext < ' _ > , ) -> CompilationUnit { let mut resources = Resources :: new ( ) ; run_pass :: < RegisterBuiltins > ( & mut resources , & ( ) , ctx ) ; run_pass :: < SymbolTableResolution > ( & mut resources , ast , ctx ) ; run_pass :: < VariableDiscovery > ( & mut resources , ast , ctx ) ; run_pass :: < BasicBlocks > ( & mut resources , ast , ctx ) ; CompilationUnit { resources } }
Process the provided AST and execute semantic analysis.
Process the provided AST and execute semantic analysis .
ast
&iec_syntax::File
ctx
&mut PassContext<'_>