Track lambda parameters in inbound data flow analysis

This commit is contained in:
Valentin Kipyatkov
2020-04-10 16:18:07 +03:00
parent 799b2d7291
commit c19a16f1e0
33 changed files with 404 additions and 35 deletions
+4 -1
View File
@@ -1,4 +1,4 @@
8 val x = foo { <bold>it</bold> }
4 return f(<bold>1</bold>)
8 val <bold>x = foo { it }</bold>
8 val x = <bold>foo { it }</bold>
3 fun <bold>foo(f: (Int) -> Int): Int {</bold>
@@ -8,4 +8,7 @@
8 [LAMBDA] val x = foo <bold>{ it }</bold>
8 val x = foo <bold>{ it }</bold>
8 val x = foo { <bold>it</bold> }
8 [LAMBDA CALLS] val x = foo <bold>{ it }</bold>
3 [LAMBDA CALLS] fun foo(<bold>f: (Int) -> Int</bold>): Int {
4 return f(<bold>1</bold>)