FIR: Implement fast path for classes subtyping

This commit is contained in:
Denis Zharkov
2019-06-20 12:50:50 +03:00
parent cafe92639b
commit bf0781d790
8 changed files with 138 additions and 12 deletions
@@ -19,6 +19,7 @@ abstract class FirSession(val sessionProvider: FirSessionProvider?) {
var _firSymbolProvider: Any? = null
var _correspondingSupertypesCache: Any? = null
fun <T : Any> getService(kclass: KClass<T>): T =
components[kclass] as T
@@ -34,4 +35,4 @@ interface FirSessionProvider {
}
inline fun <reified T : Any> FirSession.service(): T =
getService(T::class)
getService(T::class)