We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07476a2 commit 7e69e5eCopy full SHA for 7e69e5e
compiler/src/symboltable.rs
@@ -281,11 +281,6 @@ impl<'a> SymbolTableAnalyzer<'a> {
281
fn analyze_unknown_symbol(&self, symbol: &mut Symbol) {
282
if symbol.is_assigned || symbol.is_parameter {
283
symbol.scope = SymbolScope::Local;
284
- } else if !symbol.is_assigned && symbol.is_referenced {
285
- // if symbol is referenced in its block, but not assigned to.
286
- // https://docs.python.org/3/library/symtable.html?highlight=symtable#symtable.Symbol.is_free
287
- symbol.scope = SymbolScope::Unknown;
288
- symbol.is_free = true;
289
} else {
290
// Interesting stuff about the __class__ variable:
291
// https://docs.python.org/3/reference/datamodel.html?highlight=__class__#creating-the-class-object
0 commit comments