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