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:
@@ -89,7 +89,7 @@ class FileScopeFactory(
|
||||
}
|
||||
}
|
||||
|
||||
val lexicalScope = LexicalScope.Empty(lazyImportingScope, topLevelDescriptorProvider.getPackageFragment(file.packageFqName)!!)
|
||||
val lexicalScope = LexicalScope.Base(lazyImportingScope, topLevelDescriptorProvider.getPackageFragment(file.packageFqName)!!)
|
||||
|
||||
val importResolver = object : ImportResolver {
|
||||
override fun forceResolveAllImports() {
|
||||
|
||||
+1
-1
@@ -129,7 +129,7 @@ class LazyAnnotationDescriptor(
|
||||
private val source = annotationEntry.toSourceElement()
|
||||
|
||||
val scope = if (c.scope.ownerDescriptor is PackageFragmentDescriptor) {
|
||||
LexicalScope.Empty(c.scope, FileDescriptorForVisibilityChecks(source, c.scope.ownerDescriptor))
|
||||
LexicalScope.Base(c.scope, FileDescriptorForVisibilityChecks(source, c.scope.ownerDescriptor))
|
||||
}
|
||||
else {
|
||||
c.scope
|
||||
|
||||
Reference in New Issue
Block a user