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

Method add_classdict_freevar

crates/codegen/src/symboltable.rs:1144–1155  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

1142 }
1143
1144 fn add_classdict_freevar(&mut self) {
1145 let table = self.tables.last_mut().unwrap();
1146 let name = "__classdict__";
1147 let symbol = table
1148 .symbols
1149 .entry(name.to_owned())
1150 .or_insert_with(|| Symbol::new(name));
1151 symbol.scope = SymbolScope::Free;
1152 symbol
1153 .flags
1154 .insert(SymbolFlags::REFERENCED | SymbolFlags::FREE_CLASS);
1155 }
1156
1157 fn add_conditional_annotations_freevar(&mut self) {
1158 let table = self.tables.last_mut().unwrap();

Callers 1

Calls 4

newFunction · 0.85
unwrapMethod · 0.45
to_ownedMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected