FIR IDE: get unstable smartcast from FE1.0-based analysis API

Note that the current FE1.0 implementation still has some limitations

1. only references used as receiver are being considered for smartcast.
2. Somehow the smartcast information is not retained if the for generic
typed receivers. See multiSmartcastAsReceiver_stable.descriptors.txt
This commit is contained in:
Tianyu Geng
2021-11-03 10:39:16 -07:00
committed by Ilya Kirillov
parent 197079c85c
commit 7de0937031
6 changed files with 41 additions and 20 deletions
@@ -1,3 +1,3 @@
expression: a
isStable: null
smartCastType: null
isStable: false
smartCastType: (A & B)
@@ -1,3 +1,3 @@
expression: a
isStable: null
smartCastType: null
isStable: false
smartCastType: kotlin.String