mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-16 17:45:24 +00:00
Be extremely conservative about guessing scopes when we don't know.
This commit is contained in:
parent
ca09cc215d
commit
9c17d982ff
1 changed files with 2 additions and 2 deletions
|
@ -252,8 +252,8 @@ impl SymbolTableAnalyzer {
|
||||||
// Symbol is in some outer scope.
|
// Symbol is in some outer scope.
|
||||||
symbol.is_free = true;
|
symbol.is_free = true;
|
||||||
} else {
|
} else {
|
||||||
// Well, it must be a global then :)
|
// Don't make assumptions when we don't know.
|
||||||
symbol.scope = SymbolScope::Global;
|
symbol.scope = SymbolScope::Unknown;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue