Got rid of LazyIrProvider. It is not used anymore
This commit is contained in:
@@ -54,7 +54,6 @@ class DeclarationStubGenerator(
|
|||||||
|
|
||||||
fun setIrProviders(value: List<IrProvider>) {
|
fun setIrProviders(value: List<IrProvider>) {
|
||||||
irProviders_ = value
|
irProviders_ = value
|
||||||
irProviders_.filterIsInstance<LazyIrProvider>().forEach { it.declarationStubGenerator = this }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
val typeTranslator =
|
val typeTranslator =
|
||||||
|
|||||||
@@ -37,14 +37,8 @@ interface IrProvider {
|
|||||||
fun getDeclaration(symbol: IrSymbol): IrDeclaration?
|
fun getDeclaration(symbol: IrSymbol): IrDeclaration?
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
interface IrExtensionGenerator {
|
||||||
* Extension of [IrProvider] which always produces inheritors of [IrLazyDeclarationBase].
|
fun declare(symbol: IrSymbol): IrDeclaration? = null
|
||||||
* Thus, it needs [declarationStubGenerator] to be able to produce IR declarations.
|
|
||||||
*/
|
|
||||||
interface LazyIrProvider : IrProvider {
|
|
||||||
var declarationStubGenerator: DeclarationStubGenerator
|
|
||||||
|
|
||||||
override fun getDeclaration(symbol: IrSymbol): IrLazyDeclarationBase?
|
|
||||||
}
|
}
|
||||||
|
|
||||||
interface IrDeserializer : IrProvider {
|
interface IrDeserializer : IrProvider {
|
||||||
@@ -968,4 +962,4 @@ val SymbolTable.allUnbound: List<IrSymbol>
|
|||||||
r.addAll(unboundTypeAliases)
|
r.addAll(unboundTypeAliases)
|
||||||
r.addAll(unboundTypeParameters)
|
r.addAll(unboundTypeParameters)
|
||||||
return r.filter { !it.isBound }
|
return r.filter { !it.isBound }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user