Untie Symbols class from CommonBackendContext

`Symbols.context` property is actually unused. Let's drop
it as it makes harder to create an instance of this class.
This commit is contained in:
Sergey Bogolepov
2022-10-03 14:31:56 +03:00
committed by Space Team
parent de880ce9aa
commit e1f2b89875
9 changed files with 26 additions and 26 deletions
@@ -112,7 +112,7 @@ class WasmBackendContext(
PropertyLazyInitialization(enabled = propertyLazyInitialization, eagerInitialization = wasmSymbols.eagerInitialization)
override val ir = object : Ir<WasmBackendContext>(this, irModuleFragment) {
override val symbols: Symbols<WasmBackendContext> = wasmSymbols
override val symbols: Symbols = wasmSymbols
override fun shouldGenerateHandlerParameterForDefaultBodyFun() = true
}
@@ -32,9 +32,9 @@ import java.lang.IllegalArgumentException
@OptIn(ObsoleteDescriptorBasedAPI::class)
class WasmSymbols(
context: WasmBackendContext,
private val context: WasmBackendContext,
private val symbolTable: SymbolTable
) : Symbols<WasmBackendContext>(context, context.irBuiltIns, symbolTable) {
) : Symbols(context.irBuiltIns, symbolTable) {
private val kotlinTopLevelPackage: PackageViewDescriptor =
context.module.getPackage(FqName("kotlin"))