Control-Flow Analysis: Use PSI to generate pseudocode if nested resolved call is confused with outer one (e.g. a {} when invoke() is missing)

#KT-14500 Fixed
This commit is contained in:
Alexey Sedunov
2016-11-02 16:15:07 +03:00
parent e8b5387384
commit a414843f54
9 changed files with 103 additions and 8 deletions
@@ -10,10 +10,12 @@ L0:
w(i|<v0>)
2 mark({ i() })
r(i) -> <v1>
mark(i())
magic[UNRESOLVED_CALL](i()|<v1>) -> <v2>
L1:
1 <END> NEXT:[<SINK>]
1 <END> NEXT:[<SINK>]
error:
<ERROR> PREV:[]
<ERROR> PREV:[]
sink:
<SINK> PREV:[<ERROR>, <END>]
=====================
<SINK> PREV:[<ERROR>, <END>]
=====================