mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-16 01:25:25 +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_free = true;
|
||||
} else {
|
||||
// Well, it must be a global then :)
|
||||
symbol.scope = SymbolScope::Global;
|
||||
// Don't make assumptions when we don't know.
|
||||
symbol.scope = SymbolScope::Unknown;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue