Rename LexicalScope.Empty -> Base
"Empty" is slightly confusing because although the scope has no declared symbols, it is not empty: it has a parent scope which can contain symbols and can have parents as well
This commit is contained in:
@@ -21,7 +21,7 @@ import org.jetbrains.kotlin.descriptors.ModuleDescriptor
|
||||
import org.jetbrains.kotlin.resolve.scopes.LexicalScope
|
||||
import org.jetbrains.kotlin.resolve.scopes.utils.memberScopeAsImportingScope
|
||||
|
||||
fun ModuleDescriptor.builtInPackageAsLexicalScope(): LexicalScope.Empty {
|
||||
fun ModuleDescriptor.builtInPackageAsLexicalScope(): LexicalScope.Base {
|
||||
val packageView = getPackage(KotlinBuiltIns.BUILT_INS_PACKAGE_FQ_NAME)
|
||||
return LexicalScope.Empty(packageView.memberScope.memberScopeAsImportingScope(), this)
|
||||
return LexicalScope.Base(packageView.memberScope.memberScopeAsImportingScope(), this)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user