(name: String, typ: CompilerScope, line_number: u32, is_nested: bool)
| 80 | |
| 81 | impl SymbolTable { |
| 82 | fn new(name: String, typ: CompilerScope, line_number: u32, is_nested: bool) -> Self { |
| 83 | Self { |
| 84 | name, |
| 85 | typ, |
| 86 | line_number, |
| 87 | is_nested, |
| 88 | symbols: IndexMap::default(), |
| 89 | sub_tables: vec![], |
| 90 | next_sub_table: 0, |
| 91 | varnames: Vec::new(), |
| 92 | needs_class_closure: false, |
| 93 | needs_classdict: false, |
| 94 | can_see_class_scope: false, |
| 95 | is_generator: false, |
| 96 | comp_inlined: false, |
| 97 | annotation_block: None, |
| 98 | has_conditional_annotations: false, |
| 99 | future_annotations: false, |
| 100 | mangled_names: None, |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | pub fn scan_program( |
| 105 | program: &ast::ModModule, |
nothing calls this directly
no test coverage detected