[Plugin API] Corresponding fox to K/N for #KT-44100
(cherry picked from commit 3141c0dfc6bcc6583f0a370a1ebb511bf5ec5731)
This commit is contained in:
committed by
Vasily Levchenko
parent
79e1d206a5
commit
3ee0dc112b
+4
@@ -24,6 +24,7 @@ import org.jetbrains.kotlin.ir.linkage.IrDeserializer
|
||||
import org.jetbrains.kotlin.ir.symbols.IrSymbol
|
||||
import org.jetbrains.kotlin.ir.util.*
|
||||
import org.jetbrains.kotlin.ir.visitors.acceptVoid
|
||||
import org.jetbrains.kotlin.name.Name
|
||||
import org.jetbrains.kotlin.psi2ir.Psi2IrConfiguration
|
||||
import org.jetbrains.kotlin.psi2ir.Psi2IrTranslator
|
||||
import org.jetbrains.kotlin.resolve.BindingContext
|
||||
@@ -67,6 +68,9 @@ internal fun Context.psiToIr(
|
||||
|
||||
object : IrDeserializer {
|
||||
override fun getDeclaration(symbol: IrSymbol) = stubGenerator.getDeclaration(symbol)
|
||||
override fun resolveBySignatureInModule(signature: IdSignature, kind: IrDeserializer.TopLevelSymbolKind, moduleName: Name): IrSymbol {
|
||||
error("Should not be called")
|
||||
}
|
||||
}
|
||||
} else {
|
||||
val irProviderForCEnumsAndCStructs =
|
||||
|
||||
Reference in New Issue
Block a user