[LL API] Pull smart casts from the CFG in 'ContextCollector'

^KT-61599 Fixed
This commit is contained in:
Yan Zhulanow
2023-08-30 22:49:10 +09:00
committed by Space Team
parent 1247ef750f
commit 0fbf648971
35 changed files with 903 additions and 44 deletions
@@ -98,6 +98,10 @@ class PersistentImplicitReceiverStack private constructor(
return originalTypes[index]
}
fun getType(index: Int): ConeKotlinType {
return stack[index].type
}
// This method is only used from DFA and it's in some sense breaks persistence contracts of the data structure
// But it's ok since DFA handles everything properly yet, but still may be it should be rewritten somehow
@OptIn(ImplicitReceiverValue.ImplicitReceiverInternals::class)