FIR: Reimplement implicit types calculator

Make it works through a single component tracking computation status
instead of storing it in the nodes
This commit is contained in:
Denis Zharkov
2020-01-23 11:35:56 +03:00
parent f256547cc8
commit c295f2dc25
11 changed files with 311 additions and 36 deletions
@@ -10,6 +10,8 @@ import org.jetbrains.kotlin.fir.scopes.FirScope
class ScopeSession {
private val scopes = hashMapOf<Any, HashMap<ScopeSessionKey<*, *>, FirScope>>()
var returnTypeCalculator: Any? = null
@Deprecated(level = DeprecationLevel.ERROR, message = "Only for getOrBuild")
fun scopes() = scopes