IR: do not use lazyWrapper for Ir.Symbols

The reason for switching from lazyWrapper to SymbolTable itself is that
(at least in JS_IR) some of those lazily created structures could later
be deserialized, which created conflicts.
This commit is contained in:
Georgy Bronnikov
2019-12-02 16:39:20 +03:00
parent b0b04eb4cd
commit 08aeed3b46
5 changed files with 11 additions and 15 deletions
@@ -15,7 +15,7 @@ import org.jetbrains.kotlin.ir.symbols.IrClassSymbol
import org.jetbrains.kotlin.ir.symbols.IrClassifierSymbol
import org.jetbrains.kotlin.ir.symbols.IrSimpleFunctionSymbol
import org.jetbrains.kotlin.ir.types.IrType
import org.jetbrains.kotlin.ir.util.ReferenceSymbolTable
import org.jetbrains.kotlin.ir.util.SymbolTable
import org.jetbrains.kotlin.name.FqName
import org.jetbrains.kotlin.name.Name
import org.jetbrains.kotlin.resolve.scopes.MemberScope
@@ -23,7 +23,7 @@ import org.jetbrains.kotlin.types.SimpleType
class WasmSymbols(
context: WasmBackendContext,
private val symbolTable: ReferenceSymbolTable
private val symbolTable: SymbolTable
) : Symbols<WasmBackendContext>(context, symbolTable) {
override val ThrowNullPointerException