functions from a different module that is not directly imported are no longer visible (this fixes #2048),
variables from a different module that is not directly imported are no longer visible,
public types from a directly imported module are now visible, even if the module was imported somewhere else before (this fixes a bug in the original implementation of type imports).
For functions and variables, a hasImport flag is introduced, that serves for detecting the absence of a required module import.
For getting the type import right, QueryContext now has a new member libs, that provides the LibraryModule holding the declared public types.
This change fixes 3 problems:
For functions and variables, a
hasImport
flag is introduced, that serves for detecting the absence of a required module import.For getting the type import right,
QueryContext
now has a new memberlibs
, that provides theLibraryModule
holding the declared public types.