Move incremental components to :core:descriptors.common module

This commit is contained in:
Dmitriy Novozhilov
2020-08-17 10:03:33 +03:00
parent 3a48265077
commit d6d2be8e58
5 changed files with 21 additions and 12 deletions
@@ -216,5 +216,3 @@ interface ResolverForModuleComputationTracker {
@Suppress("UNCHECKED_CAST")
fun <T> ModuleInfo.getCapability(capability: ModuleCapability<T>) = capabilities[capability] as? T
val ModuleDescriptor.moduleInfo: ModuleInfo?
get() = getCapability(ModuleInfo.Capability)
@@ -0,0 +1,11 @@
/*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.analyzer
import org.jetbrains.kotlin.descriptors.ModuleDescriptor
val ModuleDescriptor.moduleInfo: ModuleInfo?
get() = getCapability(ModuleInfo.Capability)
@@ -25,11 +25,11 @@ interface LookupTracker {
val requiresPosition: Boolean
fun record(
filePath: String,
position: Position,
scopeFqName: String,
scopeKind: ScopeKind,
name: String
filePath: String,
position: Position,
scopeFqName: String,
scopeKind: ScopeKind,
name: String
)
object DO_NOTHING : LookupTracker {
@@ -47,9 +47,9 @@ enum class ScopeKind {
}
data class LookupInfo(
val filePath: String,
val position: Position,
val scopeFqName: String,
val scopeKind: ScopeKind,
val name: String
val filePath: String,
val position: Position,
val scopeFqName: String,
val scopeKind: ScopeKind,
val name: String
) : Serializable