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
@@ -199,7 +199,9 @@ class JsIrBackendContext(
.let { symbolTable.referenceSimpleFunction(it!!) }
override val ir = object : Ir<JsIrBackendContext>(this, irModuleFragment) {
override val symbols = object : Symbols<JsIrBackendContext>(this@JsIrBackendContext, irBuiltIns, symbolTable) {
override val symbols = object : Symbols(irBuiltIns, symbolTable) {
private val context = this@JsIrBackendContext
override val throwNullPointerException =
symbolTable.referenceSimpleFunction(getFunctions(kotlinPackageFqn.child(Name.identifier("THROW_NPE"))).single())