Fix explicit api issues in analysis modules
Explicit api mode was not working due to the bug. ^KT-57653
This commit is contained in:
committed by
Space Team
parent
1860683a71
commit
d57623891d
+3
-3
@@ -338,11 +338,11 @@ public class KotlinStaticDeclarationProviderFactory(
|
||||
*
|
||||
* Otherwise, each test would start indexing of stdlib from scratch,
|
||||
* and under the lock which makes tests extremely slow*/
|
||||
class KotlinFakeClsStubsCache {
|
||||
public class KotlinFakeClsStubsCache {
|
||||
private val fakeFileClsStubs = CollectionFactory.createConcurrentWeakValueMap<String, List<KotlinFileStubImpl>>()
|
||||
|
||||
companion object {
|
||||
fun processAdditionalRoot(root: VirtualFile, storage: (VirtualFile) -> List<KotlinFileStubImpl>): List<KotlinFileStubImpl>? {
|
||||
public companion object {
|
||||
public fun processAdditionalRoot(root: VirtualFile, storage: (VirtualFile) -> List<KotlinFileStubImpl>): List<KotlinFileStubImpl>? {
|
||||
val service = ApplicationManager.getApplication().getService(KotlinFakeClsStubsCache::class.java) ?: return null
|
||||
if (service.fakeFileClsStubs[root.path] == null) {
|
||||
service.fakeFileClsStubs[root.path] = storage(root)
|
||||
|
||||
Reference in New Issue
Block a user