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:
+1
-1
@@ -134,7 +134,7 @@ class KDocNameCompletionSession(
|
||||
return (
|
||||
if (collectFormParentScopes)
|
||||
scope.collectDescriptorsFiltered(nameFilter = nameFilter).asSequence()
|
||||
else if (scope is LexicalScope.Empty)
|
||||
else if (scope is LexicalScope.Base)
|
||||
scope.parent.getContributedDescriptors(nameFilter = nameFilter).asSequence()
|
||||
else
|
||||
(scope.getContributedDescriptors(nameFilter = nameFilter).asSequence()
|
||||
|
||||
Reference in New Issue
Block a user