Got rid of LazyIrProvider. It is not used anymore

This commit is contained in:
Alexander Gorshenev
2020-05-13 13:34:33 +03:00
parent 756f7076f6
commit 20dedd53ff
2 changed files with 3 additions and 10 deletions
@@ -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 }
}
}