Move incremental components to :core:descriptors.common module
This commit is contained in:
@@ -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)
|
||||
+10
-10
@@ -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
|
||||
Reference in New Issue
Block a user