Replaced [LAMBDA OUT] in test data to [LAMBDA CALLS] which is less confusing
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
8 val x = foo(fun(n: Int) = <bold>n</bold>)
|
||||
8 val x = foo(<bold>fun(n: Int) = n</bold>)
|
||||
8 [LAMBDA OUT] val x = foo(<bold>fun(n: Int) = n</bold>)
|
||||
3 [LAMBDA OUT] fun foo(<bold>f: (Int) -> Int</bold>): Int {
|
||||
8 [LAMBDA CALLS] val x = foo(<bold>fun(n: Int) = n</bold>)
|
||||
3 [LAMBDA CALLS] fun foo(<bold>f: (Int) -> Int</bold>): Int {
|
||||
4 return <bold>f(1)</bold>
|
||||
3 fun <bold>foo(f: (Int) -> Int): Int {</bold>
|
||||
8 val x = <bold>foo(fun(n: Int) = n)</bold>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
8 val x = foo(fun(n: Int): Int { return <bold>n</bold> })
|
||||
8 val x = foo(<bold>fun(n: Int): Int { return n }</bold>)
|
||||
8 [LAMBDA OUT] val x = foo(<bold>fun(n: Int): Int { return n }</bold>)
|
||||
3 [LAMBDA OUT] fun foo(<bold>f: (Int) -> Int</bold>): Int {
|
||||
8 [LAMBDA CALLS] val x = foo(<bold>fun(n: Int): Int { return n }</bold>)
|
||||
3 [LAMBDA CALLS] fun foo(<bold>f: (Int) -> Int</bold>): Int {
|
||||
4 return <bold>f(1)</bold>
|
||||
3 fun <bold>foo(f: (Int) -> Int): Int {</bold>
|
||||
8 val x = <bold>foo(fun(n: Int): Int { return n })</bold>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
8 val x = foo(1, 2) { { <bold>it</bold> } }
|
||||
8 val x = foo(1, 2) { <bold>{ it }</bold> }
|
||||
8 [LAMBDA OUT] val x = foo(1, 2) { <bold>{ it }</bold> }
|
||||
8 [LAMBDA OUT] val x = foo(1, 2) <bold>{ { it } }</bold>
|
||||
8 [LAMBDA OUT] [LAMBDA OUT] val x = foo(1, 2) <bold>{ { it } }</bold>
|
||||
3 [LAMBDA OUT] [LAMBDA OUT] fun foo(a: Int, b: Int, <bold>f: (Int) -> (Int) -> Int</bold>): Int {
|
||||
4 [LAMBDA OUT] return <bold>f(a)</bold>(b)
|
||||
8 [LAMBDA CALLS] val x = foo(1, 2) { <bold>{ it }</bold> }
|
||||
8 [LAMBDA CALLS] val x = foo(1, 2) <bold>{ { it } }</bold>
|
||||
8 [LAMBDA CALLS] [LAMBDA CALLS] val x = foo(1, 2) <bold>{ { it } }</bold>
|
||||
3 [LAMBDA CALLS] [LAMBDA CALLS] fun foo(a: Int, b: Int, <bold>f: (Int) -> (Int) -> Int</bold>): Int {
|
||||
4 [LAMBDA CALLS] return <bold>f(a)</bold>(b)
|
||||
4 return <bold>f(a)(b)</bold>
|
||||
3 fun <bold>foo(a: Int, b: Int, f: (Int) -> (Int) -> Int): Int {</bold>
|
||||
8 val x = <bold>foo(1, 2) { { it } }</bold>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
9 if (it < 0) return@foo <bold>0</bold>
|
||||
8 val x = foo <bold>{</bold>
|
||||
8 [LAMBDA OUT] val x = foo <bold>{</bold>
|
||||
3 [LAMBDA OUT] fun foo(<bold>f: (Int) -> Int</bold>): Int {
|
||||
8 [LAMBDA CALLS] val x = foo <bold>{</bold>
|
||||
3 [LAMBDA CALLS] fun foo(<bold>f: (Int) -> Int</bold>): Int {
|
||||
4 return <bold>f(1)</bold>
|
||||
3 fun <bold>foo(f: (Int) -> Int): Int {</bold>
|
||||
8 val x = <bold>foo {</bold>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
8 fun bar(n: Int) = <bold>n</bold>
|
||||
8 fun <bold>bar(n: Int) = n</bold>
|
||||
9 [LAMBDA OUT] val x = foo(<bold>::bar</bold>)
|
||||
3 [LAMBDA OUT] fun foo(<bold>f: (Int) -> Int</bold>): Int {
|
||||
9 [LAMBDA CALLS] val x = foo(<bold>::bar</bold>)
|
||||
3 [LAMBDA CALLS] fun foo(<bold>f: (Int) -> Int</bold>): Int {
|
||||
4 return <bold>f(1)</bold>
|
||||
3 fun <bold>foo(f: (Int) -> Int): Int {</bold>
|
||||
9 val x = <bold>foo(::bar)</bold>
|
||||
|
||||
+4
-4
@@ -1,9 +1,9 @@
|
||||
8 fun bar(n: Int) = <bold>n</bold>
|
||||
8 fun <bold>bar(n: Int) = n</bold>
|
||||
9 [LAMBDA OUT] val f = <bold>::bar</bold>
|
||||
9 [LAMBDA OUT] val <bold>f = ::bar</bold>
|
||||
10 [LAMBDA OUT] val x = foo(<bold>f</bold>)
|
||||
3 [LAMBDA OUT] fun foo(<bold>f: (Int) -> Int</bold>): Int {
|
||||
9 [LAMBDA CALLS] val f = <bold>::bar</bold>
|
||||
9 [LAMBDA CALLS] val <bold>f = ::bar</bold>
|
||||
10 [LAMBDA CALLS] val x = foo(<bold>f</bold>)
|
||||
3 [LAMBDA CALLS] fun foo(<bold>f: (Int) -> Int</bold>): Int {
|
||||
4 return <bold>f(1)</bold>
|
||||
3 fun <bold>foo(f: (Int) -> Int): Int {</bold>
|
||||
10 val x = <bold>foo(f)</bold>
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
4 fun bar(n: Int) = <bold>n</bold>
|
||||
4 fun <bold>bar(n: Int) = n</bold>
|
||||
5 [LAMBDA OUT] val x = (<bold>::bar</bold>)(1)
|
||||
5 [LAMBDA CALLS] val x = (<bold>::bar</bold>)(1)
|
||||
5 val x = <bold>(::bar)(1)</bold>
|
||||
5 val <bold>x = (::bar)(1)</bold>
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
8 val x = foo { <bold>it</bold> }
|
||||
8 val x = foo <bold>{ it }</bold>
|
||||
8 [LAMBDA OUT] val x = foo <bold>{ it }</bold>
|
||||
3 [LAMBDA OUT] fun foo(<bold>f: (Int) -> Int</bold>): Int {
|
||||
8 [LAMBDA CALLS] val x = foo <bold>{ it }</bold>
|
||||
3 [LAMBDA CALLS] fun foo(<bold>f: (Int) -> Int</bold>): Int {
|
||||
4 return <bold>f(1)</bold>
|
||||
3 fun <bold>foo(f: (Int) -> Int): Int {</bold>
|
||||
8 val x = <bold>foo { it }</bold>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
9 val y = foo { <bold>it</bold> }
|
||||
9 val y = foo <bold>{ it }</bold>
|
||||
9 [LAMBDA OUT] val y = foo <bold>{ it }</bold>
|
||||
3 [LAMBDA OUT] fun foo(<bold>f: (Int) -> Int</bold>): Int {
|
||||
4 [LAMBDA OUT] val x = <bold>f</bold>
|
||||
4 [LAMBDA OUT] val <bold>x = f</bold>
|
||||
9 [LAMBDA CALLS] val y = foo <bold>{ it }</bold>
|
||||
3 [LAMBDA CALLS] fun foo(<bold>f: (Int) -> Int</bold>): Int {
|
||||
4 [LAMBDA CALLS] val x = <bold>f</bold>
|
||||
4 [LAMBDA CALLS] val <bold>x = f</bold>
|
||||
5 return <bold>x(1)</bold>
|
||||
3 fun <bold>foo(f: (Int) -> Int): Int {</bold>
|
||||
9 val y = <bold>foo { it }</bold>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
4 val x = { <bold>1</bold> }()
|
||||
4 val x = <bold>{ 1 }</bold>()
|
||||
4 [LAMBDA OUT] val x = <bold>{ 1 }</bold>()
|
||||
4 [LAMBDA CALLS] val x = <bold>{ 1 }</bold>()
|
||||
4 val x = <bold>{ 1 }()</bold>
|
||||
4 val <bold>x = { 1 }()</bold>
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
4 val f = { <bold>1</bold> }
|
||||
4 val f = <bold>{ 1 }</bold>
|
||||
4 [LAMBDA OUT] val f = <bold>{ 1 }</bold>
|
||||
4 [LAMBDA OUT] val <bold>f = { 1 }</bold>
|
||||
4 [LAMBDA CALLS] val f = <bold>{ 1 }</bold>
|
||||
4 [LAMBDA CALLS] val <bold>f = { 1 }</bold>
|
||||
5 val x = <bold>f()</bold>
|
||||
5 val <bold>x = f()</bold>
|
||||
|
||||
Reference in New Issue
Block a user