Import resolver should be capable of resolving also methods and constructors #6729
Labels
-compiler
s-research-needed
Status: the task will require heavy research to complete
x-new-feature
Type: new feature request
x-on-hold
ImportResolver
is incapable of resolving symbols withinfrom ... import symbol_1, symbol_2, ...
statements. We should provide another compiler step to resolve these symbols, along with symbols from all import statements likefrom Module.Type import all
(which should collect all the constructors), etc. The step should updateBindingMap
with the additional information.There is an abandoned PR that adds this functionality - #6457. Before this PR will be integrated, we should think over the architecture of current
BindingMap
- it is currently modified in-place from many places, which is potentially dangerous, especially becauseBindingMap
is serializable, and it is cached.Related:
from
syntax does not yield any errors #5936Tasks
The text was updated successfully, but these errors were encountered: