MCPcopy Index your code
hub / github.com/RustPython/RustPython / scan_program

Method scan_program

crates/codegen/src/symboltable.rs:104–111  ·  view source on GitHub ↗
(
        program: &ast::ModModule,
        source_file: SourceFile,
    )

Source from the content-addressed store, hash-verified

102 }
103
104 pub fn scan_program(
105 program: &ast::ModModule,
106 source_file: SourceFile,
107 ) -> SymbolTableResult<Self> {
108 let mut builder = SymbolTableBuilder::new(source_file);
109 builder.scan_statements(program.body.as_ref())?;
110 builder.finish()
111 }
112
113 pub fn scan_expr(
114 expr: &ast::ModExpression,

Callers

nothing calls this directly

Calls 4

newFunction · 0.85
scan_statementsMethod · 0.80
as_refMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected