Clean JavaClassesTracker and LookupTracker on call RetryWithAdditionalRoots
#KT-38576 Fixed
This commit is contained in:
committed by
Space
parent
62707c9a89
commit
df017ea187
@@ -71,6 +71,11 @@ class JavaClassesTrackerImpl(
|
||||
}
|
||||
}
|
||||
|
||||
override fun clear() {
|
||||
classToSourceSerialized.clear()
|
||||
classDescriptors.clear()
|
||||
}
|
||||
|
||||
private fun JavaClassDescriptor.wasContentRequested() =
|
||||
this.safeAs<LazyJavaClassDescriptor>()?.wasScopeContentRequested() != false
|
||||
}
|
||||
|
||||
@@ -276,6 +276,15 @@ class LookupTrackerImpl(private val delegate: LookupTracker) : LookupTracker {
|
||||
delegate.record(prevFilePath, position, prevScopeFqName, scopeKind, prevName)
|
||||
}
|
||||
}
|
||||
|
||||
override fun clear() {
|
||||
lookups.clear()
|
||||
prevFilePath = ""
|
||||
prevPosition = null
|
||||
prevScopeFqName = ""
|
||||
prevScopeKind = null
|
||||
prevName = ""
|
||||
}
|
||||
}
|
||||
|
||||
data class LookupSymbol(val name: String, val scope: String) : Comparable<LookupSymbol> {
|
||||
|
||||
Reference in New Issue
Block a user