All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jetbrains.kotlin.fir.backend.Fir2IrCommonMemberStorage.kt Maven / Gradle / Ivy

/*
 * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
 * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
 */

package org.jetbrains.kotlin.fir.backend

import org.jetbrains.kotlin.fir.declarations.*
import org.jetbrains.kotlin.fir.signaturer.FirBasedSignatureComposer
import org.jetbrains.kotlin.ir.declarations.*
import org.jetbrains.kotlin.ir.declarations.impl.IrFactoryImpl
import org.jetbrains.kotlin.ir.util.IdSignatureComposer
import org.jetbrains.kotlin.ir.util.SymbolTable
import java.util.concurrent.ConcurrentHashMap

class Fir2IrCommonMemberStorage(
    signatureComposer: IdSignatureComposer,
    firMangler: FirMangler
) {
    val firSignatureComposer = FirBasedSignatureComposer(firMangler)

    val symbolTable = SymbolTable(signaturer = signatureComposer, irFactory = IrFactoryImpl)

    val classCache: MutableMap = mutableMapOf()

    val typeParameterCache: MutableMap = mutableMapOf()

    val enumEntryCache: MutableMap = mutableMapOf()

    val localClassCache: MutableMap = mutableMapOf()

    val functionCache: ConcurrentHashMap = ConcurrentHashMap()

    val constructorCache: ConcurrentHashMap = ConcurrentHashMap()

    val propertyCache: ConcurrentHashMap = ConcurrentHashMap()

    val fakeOverridesInClass: MutableMap> = mutableMapOf()

    val irFakeOverridesForFirFakeOverrideMap: MutableMap = mutableMapOf()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy