Container presentation in slicer tree: limit number of parameters shown by 2

This commit is contained in:
Valentin Kipyatkov
2020-04-14 16:48:15 +03:00
parent 3e5820e4c1
commit 2ee776a0d8
51 changed files with 270 additions and 219 deletions
@@ -12,6 +12,7 @@ import com.intellij.ui.SimpleTextAttributes
import com.intellij.util.FontUtil
import org.jetbrains.kotlin.descriptors.ClassifierDescriptor
import org.jetbrains.kotlin.descriptors.ConstructorDescriptor
import org.jetbrains.kotlin.descriptors.ValueParameterDescriptor
import org.jetbrains.kotlin.idea.KotlinBundle
import org.jetbrains.kotlin.idea.caches.resolve.unsafeResolveToDescriptor
import org.jetbrains.kotlin.psi.*
@@ -26,6 +27,7 @@ object KotlinSliceUsageCellRenderer : SliceUsageCellRendererBase() {
private val descriptorRenderer = DescriptorRenderer.ONLY_NAMES_WITH_SHORT_TYPES.withOptions {
withoutReturnType = true
renderConstructorKeyword = false
valueParametersHandler = TruncatedValueParametersHandler(maxParameters = 2)
}
override fun customizeCellRendererFor(sliceUsage: SliceUsage) {
@@ -86,4 +88,43 @@ object KotlinSliceUsageCellRenderer : SliceUsageCellRendererBase() {
append(descriptorRenderer.render(descriptor))
}
}
private class TruncatedValueParametersHandler(private val maxParameters: Int) : DescriptorRenderer.ValueParametersHandler {
private var truncateLength = -1
override fun appendBeforeValueParameters(parameterCount: Int, builder: StringBuilder) {
builder.append("(")
}
override fun appendAfterValueParameters(parameterCount: Int, builder: StringBuilder) {
if (parameterCount > maxParameters) {
builder.setLength(truncateLength)
builder.append(",${Typography.ellipsis}")
}
builder.append(")")
}
override fun appendBeforeValueParameter(
parameter: ValueParameterDescriptor,
parameterIndex: Int,
parameterCount: Int,
builder: StringBuilder
) {
}
override fun appendAfterValueParameter(
parameter: ValueParameterDescriptor,
parameterIndex: Int,
parameterCount: Int,
builder: StringBuilder
) {
if (parameterIndex < parameterCount - 1) {
if (parameterIndex == maxParameters - 1) {
truncateLength = builder.length
} else {
builder.append(", ")
}
}
}
}
}
@@ -1,10 +1,10 @@
4 override fun foo() = <bold>2</bold> (in B.foo())
9 val <bold>y = b.foo()</bold> (in test(A, B, C, D))
9 val y = <bold>b.foo()</bold> (in test(A, B, C, D))
9 val <bold>y = b.foo()</bold> (in test(A, B,))
9 val y = <bold>b.foo()</bold> (in test(A, B,))
4 override fun <bold>foo() = 2</bold> (in B)
4 override fun foo() = <bold>2</bold> (in B.foo())
11 return <bold>4</bold>;
9 val <bold>y = b.foo()</bold> (in test(A, B, C, D))
9 val y = <bold>b.foo()</bold> (in test(A, B, C, D))
9 val <bold>y = b.foo()</bold> (in test(A, B,))
9 val y = <bold>b.foo()</bold> (in test(A, B,))
11 return <bold>4</bold>;
@@ -1,3 +1,4 @@
[NotNull Values]
9 val <bold>y = b.foo()</bold> (in test(A, B, C, D))
9 val <bold>y = b.foo()</bold> (in test(A, B, C, D))
9 val <bold>y = b.foo()</bold> (in test(A, B,))
9 val <bold>y = b.foo()</bold> (in test(A, B,))
@@ -1,5 +1,5 @@
9 val <bold>y = b.foo()</bold> (in test(A, B, C, D))
9 val y = <bold>b.foo()</bold> (in test(A, B, C, D))
9 val <bold>y = b.foo()</bold> (in test(A, B,))
9 val y = <bold>b.foo()</bold> (in test(A, B,))
4 override fun <bold>foo() = 2</bold> (in B)
4 override fun foo() = <bold>2</bold> (in B.foo())
11 return <bold>4</bold>;
@@ -1,10 +1,10 @@
4 override fun foo() = <bold>3</bold> (in C.foo())
10 val <bold>z = c.foo()</bold> (in test(A, B, C, D))
10 val z = <bold>c.foo()</bold> (in test(A, B, C, D))
10 val <bold>z = c.foo()</bold> (in test(A, B,))
10 val z = <bold>c.foo()</bold> (in test(A, B,))
4 override fun <bold>foo() = 3</bold> (in C)
4 override fun foo() = <bold>3</bold> (in C.foo())
13 return <bold>4</bold>;
10 val <bold>z = c.foo()</bold> (in test(A, B, C, D))
10 val z = <bold>c.foo()</bold> (in test(A, B, C, D))
10 val <bold>z = c.foo()</bold> (in test(A, B,))
10 val z = <bold>c.foo()</bold> (in test(A, B,))
13 return <bold>4</bold>;
@@ -1,3 +1,4 @@
[NotNull Values]
10 val <bold>z = c.foo()</bold> (in test(A, B, C, D))
10 val <bold>z = c.foo()</bold> (in test(A, B, C, D))
10 val <bold>z = c.foo()</bold> (in test(A, B,))
10 val <bold>z = c.foo()</bold> (in test(A, B,))
@@ -1,5 +1,5 @@
10 val <bold>z = c.foo()</bold> (in test(A, B, C, D))
10 val z = <bold>c.foo()</bold> (in test(A, B, C, D))
10 val <bold>z = c.foo()</bold> (in test(A, B,))
10 val z = <bold>c.foo()</bold> (in test(A, B,))
4 override fun <bold>foo() = 3</bold> (in C)
4 override fun foo() = <bold>3</bold> (in C.foo())
13 return <bold>4</bold>;
@@ -1,15 +1,15 @@
4 fun foo() = <bold>1</bold> (in A.foo())
8 val <bold>x = a.foo()</bold> (in test(A, B, C, D))
8 val x = <bold>a.foo()</bold> (in test(A, B, C, D))
8 val <bold>x = a.foo()</bold> (in test(A, B,))
8 val x = <bold>a.foo()</bold> (in test(A, B,))
4 fun <bold>foo() = 1</bold> (in A)
4 fun foo() = <bold>1</bold> (in A.foo())
3 return <bold>2</bold>;
8 val <bold>x = a.foo()</bold> (in test(A, B, C, D))
8 val x = <bold>a.foo()</bold> (in test(A, B, C, D))
8 val <bold>x = a.foo()</bold> (in test(A, B,))
8 val x = <bold>a.foo()</bold> (in test(A, B,))
3 return <bold>2</bold>;
13 return <bold>4</bold>;
8 val <bold>x = a.foo()</bold> (in test(A, B, C, D))
8 val x = <bold>a.foo()</bold> (in test(A, B, C, D))
8 val <bold>x = a.foo()</bold> (in test(A, B,))
8 val x = <bold>a.foo()</bold> (in test(A, B,))
13 return <bold>4</bold>;
@@ -1,3 +1,4 @@
[NotNull Values]
8 val <bold>x = a.foo()</bold> (in test(A, B, C, D))
8 val <bold>x = a.foo()</bold> (in test(A, B, C, D))
8 val <bold>x = a.foo()</bold> (in test(A, B,))
8 val <bold>x = a.foo()</bold> (in test(A, B,))
@@ -1,5 +1,5 @@
8 val <bold>x = a.foo()</bold> (in test(A, B, C, D))
8 val x = <bold>a.foo()</bold> (in test(A, B, C, D))
8 val <bold>x = a.foo()</bold> (in test(A, B,))
8 val x = <bold>a.foo()</bold> (in test(A, B,))
4 fun <bold>foo() = 1</bold> (in A)
4 fun foo() = <bold>1</bold> (in A.foo())
3 return <bold>2</bold>;
@@ -1,11 +1,11 @@
8 override fun foo() = <bold>2</bold> (in B.foo())
21 val <bold>y = b.foo()</bold> (in test(A, B, C, D))
21 val y = <bold>b.foo()</bold> (in test(A, B, C, D))
21 val <bold>y = b.foo()</bold> (in test(A, B,))
21 val y = <bold>b.foo()</bold> (in test(A, B,))
8 override fun <bold>foo() = 2</bold> (in B)
8 override fun foo() = <bold>2</bold> (in B.foo())
16 override fun foo() = <bold>4</bold> (in D.foo())
21 val <bold>y = b.foo()</bold> (in test(A, B, C, D))
21 val y = <bold>b.foo()</bold> (in test(A, B, C, D))
21 val <bold>y = b.foo()</bold> (in test(A, B,))
21 val y = <bold>b.foo()</bold> (in test(A, B,))
16 override fun <bold>foo() = 4</bold> (in D)
16 override fun foo() = <bold>4</bold> (in D.foo())
@@ -1,3 +1,4 @@
[NotNull Values]
21 val <bold>y = b.foo()</bold> (in test(A, B, C, D))
21 val <bold>y = b.foo()</bold> (in test(A, B, C, D))
21 val <bold>y = b.foo()</bold> (in test(A, B,))
21 val <bold>y = b.foo()</bold> (in test(A, B,))
@@ -1,5 +1,5 @@
21 val <bold>y = b.foo()</bold> (in test(A, B, C, D))
21 val y = <bold>b.foo()</bold> (in test(A, B, C, D))
21 val <bold>y = b.foo()</bold> (in test(A, B,))
21 val y = <bold>b.foo()</bold> (in test(A, B,))
8 override fun <bold>foo() = 2</bold> (in B)
8 override fun foo() = <bold>2</bold> (in B.foo())
16 override fun <bold>foo() = 4</bold> (in D)
@@ -1,11 +1,11 @@
12 override fun foo() = <bold>3</bold> (in C.foo())
22 val <bold>z = c.foo()</bold> (in test(A, B, C, D))
22 val z = <bold>c.foo()</bold> (in test(A, B, C, D))
22 val <bold>z = c.foo()</bold> (in test(A, B,))
22 val z = <bold>c.foo()</bold> (in test(A, B,))
12 override fun <bold>foo() = 3</bold> (in C)
12 override fun foo() = <bold>3</bold> (in C.foo())
16 override fun foo() = <bold>4</bold> (in D.foo())
22 val <bold>z = c.foo()</bold> (in test(A, B, C, D))
22 val z = <bold>c.foo()</bold> (in test(A, B, C, D))
22 val <bold>z = c.foo()</bold> (in test(A, B,))
22 val z = <bold>c.foo()</bold> (in test(A, B,))
16 override fun <bold>foo() = 4</bold> (in D)
16 override fun foo() = <bold>4</bold> (in D.foo())
@@ -1,3 +1,4 @@
[NotNull Values]
22 val <bold>z = c.foo()</bold> (in test(A, B, C, D))
22 val <bold>z = c.foo()</bold> (in test(A, B, C, D))
22 val <bold>z = c.foo()</bold> (in test(A, B,))
22 val <bold>z = c.foo()</bold> (in test(A, B,))
@@ -1,5 +1,5 @@
22 val <bold>z = c.foo()</bold> (in test(A, B, C, D))
22 val z = <bold>c.foo()</bold> (in test(A, B, C, D))
22 val <bold>z = c.foo()</bold> (in test(A, B,))
22 val z = <bold>c.foo()</bold> (in test(A, B,))
12 override fun <bold>foo() = 3</bold> (in C)
12 override fun foo() = <bold>3</bold> (in C.foo())
16 override fun <bold>foo() = 4</bold> (in D)
@@ -1,23 +1,23 @@
4 fun foo() = <bold>1</bold> (in A.foo())
20 val <bold>x = a.foo()</bold> (in test(A, B, C, D))
20 val x = <bold>a.foo()</bold> (in test(A, B, C, D))
20 val <bold>x = a.foo()</bold> (in test(A, B,))
20 val x = <bold>a.foo()</bold> (in test(A, B,))
4 fun <bold>foo() = 1</bold> (in A)
4 fun foo() = <bold>1</bold> (in A.foo())
8 override fun foo() = <bold>2</bold> (in B.foo())
20 val <bold>x = a.foo()</bold> (in test(A, B, C, D))
20 val x = <bold>a.foo()</bold> (in test(A, B, C, D))
20 val <bold>x = a.foo()</bold> (in test(A, B,))
20 val x = <bold>a.foo()</bold> (in test(A, B,))
8 override fun <bold>foo() = 2</bold> (in B)
8 override fun foo() = <bold>2</bold> (in B.foo())
12 override fun foo() = <bold>3</bold> (in C.foo())
20 val <bold>x = a.foo()</bold> (in test(A, B, C, D))
20 val x = <bold>a.foo()</bold> (in test(A, B, C, D))
20 val <bold>x = a.foo()</bold> (in test(A, B,))
20 val x = <bold>a.foo()</bold> (in test(A, B,))
12 override fun <bold>foo() = 3</bold> (in C)
12 override fun foo() = <bold>3</bold> (in C.foo())
16 override fun foo() = <bold>4</bold> (in D.foo())
20 val <bold>x = a.foo()</bold> (in test(A, B, C, D))
20 val x = <bold>a.foo()</bold> (in test(A, B, C, D))
20 val <bold>x = a.foo()</bold> (in test(A, B,))
20 val x = <bold>a.foo()</bold> (in test(A, B,))
16 override fun <bold>foo() = 4</bold> (in D)
16 override fun foo() = <bold>4</bold> (in D.foo())
@@ -1,3 +1,4 @@
[NotNull Values]
20 val <bold>x = a.foo()</bold> (in test(A, B, C, D))
20 val <bold>x = a.foo()</bold> (in test(A, B, C, D))
20 val <bold>x = a.foo()</bold> (in test(A, B,))
20 val <bold>x = a.foo()</bold> (in test(A, B,))
@@ -1,5 +1,5 @@
20 val <bold>x = a.foo()</bold> (in test(A, B, C, D))
20 val x = <bold>a.foo()</bold> (in test(A, B, C, D))
20 val <bold>x = a.foo()</bold> (in test(A, B,))
20 val x = <bold>a.foo()</bold> (in test(A, B,))
4 fun <bold>foo() = 1</bold> (in A)
4 fun foo() = <bold>1</bold> (in A.foo())
8 override fun <bold>foo() = 2</bold> (in B)
@@ -2,10 +2,10 @@
8 val <bold>x = foo(1, 2) { { it } }</bold> (in test())
8 val x = <bold>foo(1, 2) { { it } }</bold> (in test())
3 fun <bold>foo(a: Int, b: Int, f: (Int) -> (Int) -> Int): Int {</bold>
4 return <bold>f(a)(b)</bold> (in foo(Int, Int, (Int) -> (Int) -> Int))
4 [LAMBDA IN] return <bold>f(a)</bold>(b) (in foo(Int, Int, (Int) -> (Int) -> Int))
4 [LAMBDA IN] [LAMBDA IN] return <bold>f</bold>(a)(b) (in foo(Int, Int, (Int) -> (Int) -> Int))
3 [LAMBDA IN] [LAMBDA IN] fun foo(a: Int, b: Int, <bold>f: (Int) -> (Int) -> Int</bold>): Int { (in foo(Int, Int, (Int) -> (Int) -> Int))
4 return <bold>f(a)(b)</bold> (in foo(Int, Int,))
4 [LAMBDA IN] return <bold>f(a)</bold>(b) (in foo(Int, Int,))
4 [LAMBDA IN] [LAMBDA IN] return <bold>f</bold>(a)(b) (in foo(Int, Int,))
3 [LAMBDA IN] [LAMBDA IN] fun foo(a: Int, b: Int, <bold>f: (Int) -> (Int) -> Int</bold>): Int { (in foo(Int, Int,))
8 [LAMBDA IN] [LAMBDA IN] val x = foo(1, 2) <bold>{ { it } }</bold> (in test())
8 [LAMBDA IN] val x = foo(1, 2) <bold>{ { it } }</bold> (in test())
8 [LAMBDA IN] val x = foo(1, 2) { <bold>{ it }</bold> } (in test())
@@ -14,8 +14,8 @@
8 [LAMBDA CALLS ARGUMENT #0] val x = foo(1, 2) { <bold>{ it }</bold> } (in test())
8 [LAMBDA CALLS ARGUMENT #0] val x = foo(1, 2) <bold>{ { it } }</bold> (in test())
8 [LAMBDA CALLS] [LAMBDA CALLS ARGUMENT #0] val x = foo(1, 2) <bold>{ { it } }</bold> (in test())
3 [LAMBDA CALLS] [LAMBDA CALLS ARGUMENT #0] fun foo(a: Int, b: Int, <bold>f: (Int) -> (Int) -> Int</bold>): Int { (in foo(Int, Int, (Int) -> (Int) -> Int))
4 [LAMBDA CALLS ARGUMENT #0] return <bold>f(a)</bold>(b) (in foo(Int, Int, (Int) -> (Int) -> Int))
4 return f(a)(<bold>b</bold>) (in foo(Int, Int, (Int) -> (Int) -> Int))
3 fun foo(a: Int, <bold>b: Int</bold>, f: (Int) -> (Int) -> Int): Int { (in foo(Int, Int, (Int) -> (Int) -> Int))
3 [LAMBDA CALLS] [LAMBDA CALLS ARGUMENT #0] fun foo(a: Int, b: Int, <bold>f: (Int) -> (Int) -> Int</bold>): Int { (in foo(Int, Int,))
4 [LAMBDA CALLS ARGUMENT #0] return <bold>f(a)</bold>(b) (in foo(Int, Int,))
4 return f(a)(<bold>b</bold>) (in foo(Int, Int,))
3 fun foo(a: Int, <bold>b: Int</bold>, f: (Int) -> (Int) -> Int): Int { (in foo(Int, Int,))
8 val x = foo(1, <bold>2</bold>) { { it } } (in test())
+8 -8
View File
@@ -1,10 +1,10 @@
8 val <bold>x = foo(1, 2) { { it } }</bold> (in test())
8 val x = <bold>foo(1, 2) { { it } }</bold> (in test())
3 fun <bold>foo(a: Int, b: Int, f: (Int) -> (Int) -> Int): Int {</bold>
4 return <bold>f(a)(b)</bold> (in foo(Int, Int, (Int) -> (Int) -> Int))
4 [LAMBDA IN] return <bold>f(a)</bold>(b) (in foo(Int, Int, (Int) -> (Int) -> Int))
4 [LAMBDA IN] [LAMBDA IN] return <bold>f</bold>(a)(b) (in foo(Int, Int, (Int) -> (Int) -> Int))
3 [LAMBDA IN] [LAMBDA IN] fun foo(a: Int, b: Int, <bold>f: (Int) -> (Int) -> Int</bold>): Int { (in foo(Int, Int, (Int) -> (Int) -> Int))
4 return <bold>f(a)(b)</bold> (in foo(Int, Int,))
4 [LAMBDA IN] return <bold>f(a)</bold>(b) (in foo(Int, Int,))
4 [LAMBDA IN] [LAMBDA IN] return <bold>f</bold>(a)(b) (in foo(Int, Int,))
3 [LAMBDA IN] [LAMBDA IN] fun foo(a: Int, b: Int, <bold>f: (Int) -> (Int) -> Int</bold>): Int { (in foo(Int, Int,))
8 [LAMBDA IN] [LAMBDA IN] val x = foo(1, 2) <bold>{ { it } }</bold> (in test())
8 [LAMBDA IN] val x = foo(1, 2) <bold>{ { it } }</bold> (in test())
8 [LAMBDA IN] val x = foo(1, 2) { <bold>{ it }</bold> } (in test())
@@ -13,8 +13,8 @@
8 [LAMBDA CALLS ARGUMENT #0] val x = foo(1, 2) { <bold>{ it }</bold> } (in test())
8 [LAMBDA CALLS ARGUMENT #0] val x = foo(1, 2) <bold>{ { it } }</bold> (in test())
8 [LAMBDA CALLS] [LAMBDA CALLS ARGUMENT #0] val x = foo(1, 2) <bold>{ { it } }</bold> (in test())
3 [LAMBDA CALLS] [LAMBDA CALLS ARGUMENT #0] fun foo(a: Int, b: Int, <bold>f: (Int) -> (Int) -> Int</bold>): Int { (in foo(Int, Int, (Int) -> (Int) -> Int))
4 [LAMBDA CALLS ARGUMENT #0] return <bold>f(a)</bold>(b) (in foo(Int, Int, (Int) -> (Int) -> Int))
4 return f(a)(<bold>b</bold>) (in foo(Int, Int, (Int) -> (Int) -> Int))
3 fun foo(a: Int, <bold>b: Int</bold>, f: (Int) -> (Int) -> Int): Int { (in foo(Int, Int, (Int) -> (Int) -> Int))
3 [LAMBDA CALLS] [LAMBDA CALLS ARGUMENT #0] fun foo(a: Int, b: Int, <bold>f: (Int) -> (Int) -> Int</bold>): Int { (in foo(Int, Int,))
4 [LAMBDA CALLS ARGUMENT #0] return <bold>f(a)</bold>(b) (in foo(Int, Int,))
4 return f(a)(<bold>b</bold>) (in foo(Int, Int,))
3 fun foo(a: Int, <bold>b: Int</bold>, f: (Int) -> (Int) -> Int): Int { (in foo(Int, Int,))
8 val x = foo(1, <bold>2</bold>) { { it } } (in test())
@@ -1,16 +1,16 @@
8 override fun foo() = <bold>2</bold> (in B.foo())
17 val <bold>y = b.foo()</bold> (in test(A, B, C))
17 val y = <bold>b.foo()</bold> (in test(A, B, C))
17 val <bold>y = b.foo()</bold> (in test(A, B,))
17 val y = <bold>b.foo()</bold> (in test(A, B,))
8 override fun <bold>foo() = 2</bold> (in B)
8 override fun foo() = <bold>2</bold> (in B.foo())
12 override fun foo() = <bold>3</bold> (in C.foo())
17 val <bold>y = b.foo()</bold> (in test(A, B, C))
17 val y = <bold>b.foo()</bold> (in test(A, B, C))
17 val <bold>y = b.foo()</bold> (in test(A, B,))
17 val y = <bold>b.foo()</bold> (in test(A, B,))
12 override fun <bold>foo() = 3</bold> (in C)
12 override fun foo() = <bold>3</bold> (in C.foo())
3 return <bold>5</bold>;
17 val <bold>y = b.foo()</bold> (in test(A, B, C))
17 val y = <bold>b.foo()</bold> (in test(A, B, C))
17 val <bold>y = b.foo()</bold> (in test(A, B,))
17 val y = <bold>b.foo()</bold> (in test(A, B,))
3 return <bold>5</bold>;
@@ -1,3 +1,4 @@
[NotNull Values]
17 val <bold>y = b.foo()</bold> (in test(A, B, C))
17 val <bold>y = b.foo()</bold> (in test(A, B, C))
17 val <bold>y = b.foo()</bold> (in test(A, B,))
17 val <bold>y = b.foo()</bold> (in test(A, B,))
@@ -1,5 +1,5 @@
17 val <bold>y = b.foo()</bold> (in test(A, B, C))
17 val y = <bold>b.foo()</bold> (in test(A, B, C))
17 val <bold>y = b.foo()</bold> (in test(A, B,))
17 val y = <bold>b.foo()</bold> (in test(A, B,))
3 return <bold>5</bold>;
8 override fun <bold>foo() = 2</bold> (in B)
8 override fun foo() = <bold>2</bold> (in B.foo())
@@ -1,22 +1,22 @@
9 class C : B(<bold>1</bold>) { (in C)
15 val <bold>y = b.foo</bold> (in test(A, B, C))
15 val y = <bold>b.foo</bold> (in test(A, B, C))
15 val <bold>y = b.foo</bold> (in test(A, B,))
15 val y = <bold>b.foo</bold> (in test(A, B,))
7 open class B(override val <bold>foo: Int</bold>) : A() (in B)
9 class C : B(<bold>1</bold>) { (in C)
10 override val foo = <bold>3</bold> (in C.foo: Int)
15 val <bold>y = b.foo</bold> (in test(A, B, C))
15 val y = <bold>b.foo</bold> (in test(A, B, C))
15 val <bold>y = b.foo</bold> (in test(A, B,))
15 val y = <bold>b.foo</bold> (in test(A, B,))
10 override val <bold>foo = 3</bold> (in C)
10 override val foo = <bold>3</bold> (in C.foo: Int)
7 return <bold>5</bold>;
15 val <bold>y = b.foo</bold> (in test(A, B, C))
15 val y = <bold>b.foo</bold> (in test(A, B, C))
15 val <bold>y = b.foo</bold> (in test(A, B,))
15 val y = <bold>b.foo</bold> (in test(A, B,))
7 return <bold>5</bold>;
3 super(<bold>10</bold>);
15 val <bold>y = b.foo</bold> (in test(A, B, C))
15 val y = <bold>b.foo</bold> (in test(A, B, C))
15 val <bold>y = b.foo</bold> (in test(A, B,))
15 val y = <bold>b.foo</bold> (in test(A, B,))
7 open class B(override val <bold>foo: Int</bold>) : A() (in B)
3 super(<bold>10</bold>);
@@ -1,3 +1,4 @@
[NotNull Values]
15 val <bold>y = b.foo</bold> (in test(A, B, C))
15 val <bold>y = b.foo</bold> (in test(A, B, C))
15 val <bold>y = b.foo</bold> (in test(A, B,))
15 val <bold>y = b.foo</bold> (in test(A, B,))
@@ -1,5 +1,5 @@
15 val <bold>y = b.foo</bold> (in test(A, B, C))
15 val y = <bold>b.foo</bold> (in test(A, B, C))
15 val <bold>y = b.foo</bold> (in test(A, B,))
15 val y = <bold>b.foo</bold> (in test(A, B,))
7 open class B(override val <bold>foo: Int</bold>) : A() (in B)
3 super(<bold>10</bold>);
9 class C : B(<bold>1</bold>) { (in C)
@@ -1,16 +1,16 @@
10 get() = <bold>2</bold> (in B.foo: Int)
20 val <bold>y = b.foo</bold> (in test(A, B, C))
20 val y = <bold>b.foo</bold> (in test(A, B, C))
20 val <bold>y = b.foo</bold> (in test(A, B,))
20 val y = <bold>b.foo</bold> (in test(A, B,))
9 override val <bold>foo: Int</bold> (in B)
10 get() = <bold>2</bold> (in B.foo: Int)
15 get() = <bold>3</bold> (in C.foo: Int)
20 val <bold>y = b.foo</bold> (in test(A, B, C))
20 val y = <bold>b.foo</bold> (in test(A, B, C))
20 val <bold>y = b.foo</bold> (in test(A, B,))
20 val y = <bold>b.foo</bold> (in test(A, B,))
14 override val <bold>foo: Int</bold> (in C)
15 get() = <bold>3</bold> (in C.foo: Int)
3 return <bold>5</bold>;
20 val <bold>y = b.foo</bold> (in test(A, B, C))
20 val y = <bold>b.foo</bold> (in test(A, B, C))
20 val <bold>y = b.foo</bold> (in test(A, B,))
20 val y = <bold>b.foo</bold> (in test(A, B,))
3 return <bold>5</bold>;
@@ -1,3 +1,4 @@
[NotNull Values]
20 val <bold>y = b.foo</bold> (in test(A, B, C))
20 val <bold>y = b.foo</bold> (in test(A, B, C))
20 val <bold>y = b.foo</bold> (in test(A, B,))
20 val <bold>y = b.foo</bold> (in test(A, B,))
@@ -1,5 +1,5 @@
20 val <bold>y = b.foo</bold> (in test(A, B, C))
20 val y = <bold>b.foo</bold> (in test(A, B, C))
20 val <bold>y = b.foo</bold> (in test(A, B,))
20 val y = <bold>b.foo</bold> (in test(A, B,))
3 return <bold>5</bold>;
9 override val <bold>foo: Int</bold> (in B)
10 get() = <bold>2</bold> (in B.foo: Int)
@@ -1,16 +1,16 @@
8 override val foo = <bold>2</bold> (in B.foo: Int)
17 val <bold>y = b.foo</bold> (in test(A, B, C))
17 val y = <bold>b.foo</bold> (in test(A, B, C))
17 val <bold>y = b.foo</bold> (in test(A, B,))
17 val y = <bold>b.foo</bold> (in test(A, B,))
8 override val <bold>foo = 2</bold> (in B)
8 override val foo = <bold>2</bold> (in B.foo: Int)
12 override val foo = <bold>3</bold> (in C.foo: Int)
17 val <bold>y = b.foo</bold> (in test(A, B, C))
17 val y = <bold>b.foo</bold> (in test(A, B, C))
17 val <bold>y = b.foo</bold> (in test(A, B,))
17 val y = <bold>b.foo</bold> (in test(A, B,))
12 override val <bold>foo = 3</bold> (in C)
12 override val foo = <bold>3</bold> (in C.foo: Int)
3 return <bold>5</bold>;
17 val <bold>y = b.foo</bold> (in test(A, B, C))
17 val y = <bold>b.foo</bold> (in test(A, B, C))
17 val <bold>y = b.foo</bold> (in test(A, B,))
17 val y = <bold>b.foo</bold> (in test(A, B,))
3 return <bold>5</bold>;
@@ -1,3 +1,4 @@
[NotNull Values]
17 val <bold>y = b.foo</bold> (in test(A, B, C))
17 val <bold>y = b.foo</bold> (in test(A, B, C))
17 val <bold>y = b.foo</bold> (in test(A, B,))
17 val <bold>y = b.foo</bold> (in test(A, B,))
@@ -1,5 +1,5 @@
17 val <bold>y = b.foo</bold> (in test(A, B, C))
17 val y = <bold>b.foo</bold> (in test(A, B, C))
17 val <bold>y = b.foo</bold> (in test(A, B,))
17 val y = <bold>b.foo</bold> (in test(A, B,))
3 return <bold>5</bold>;
8 override val <bold>foo = 2</bold> (in B)
8 override val foo = <bold>2</bold> (in B.foo: Int)
@@ -12,8 +12,8 @@
7 operator fun <bold>getValue(thisRef: Any?, property: KProperty<*>) = _value</bold> (in Delegate)
7 operator fun getValue(thisRef: Any?, property: KProperty<*>) = <bold>_value</bold> (in Delegate.getValue(Any?, KProperty<*>))
6 private var <bold>_value: String = ""</bold> (in Delegate)
9 _value = <bold>value</bold> (in Delegate.setValue(Any?, KProperty<*>, String))
8 operator fun setValue(thisRef: Any?, property: KProperty<*>, <bold>value: String</bold>) { (in Delegate.setValue(Any?, KProperty<*>, String))
9 _value = <bold>value</bold> (in Delegate.setValue(Any?, KProperty<*>,))
8 operator fun setValue(thisRef: Any?, property: KProperty<*>, <bold>value: String</bold>) { (in Delegate.setValue(Any?, KProperty<*>,))
20 name = <bold>"bye"</bold> (in AClass.uses())
26 val a = AClass(<bold>"hello"</bold>) (in main(Array<String>))
@@ -22,8 +22,8 @@
7 operator fun <bold>getValue(thisRef: Any?, property: KProperty<*>) = _value</bold> (in Delegate)
7 operator fun getValue(thisRef: Any?, property: KProperty<*>) = <bold>_value</bold> (in Delegate.getValue(Any?, KProperty<*>))
6 private var <bold>_value: String = ""</bold> (in Delegate)
9 _value = <bold>value</bold> (in Delegate.setValue(Any?, KProperty<*>, String))
8 operator fun setValue(thisRef: Any?, property: KProperty<*>, <bold>value: String</bold>) { (in Delegate.setValue(Any?, KProperty<*>, String))
9 _value = <bold>value</bold> (in Delegate.setValue(Any?, KProperty<*>,))
8 operator fun setValue(thisRef: Any?, property: KProperty<*>, <bold>value: String</bold>) { (in Delegate.setValue(Any?, KProperty<*>,))
16 name = <bold>name1</bold> (in AClass)
13 class AClass(<bold>name1: String</bold>){ (in AClass(String))
26 val a = AClass(<bold>"hello"</bold>) (in main(Array<String>))
@@ -4,8 +4,8 @@
7 operator fun getValue(thisRef: Any?, property: KProperty<*>) = <bold>_value</bold> (in Delegate.getValue(Any?, KProperty<*>))
6 private var <bold>_value: String = ""</bold> (in Delegate)
6 private var _value: String = <bold>""</bold> (in Delegate._value: String)
9 _value = <bold>value</bold> (in Delegate.setValue(Any?, KProperty<*>, String))
8 operator fun setValue(thisRef: Any?, property: KProperty<*>, <bold>value: String</bold>) { (in Delegate.setValue(Any?, KProperty<*>, String))
9 _value = <bold>value</bold> (in Delegate.setValue(Any?, KProperty<*>,))
8 operator fun setValue(thisRef: Any?, property: KProperty<*>, <bold>value: String</bold>) { (in Delegate.setValue(Any?, KProperty<*>,))
16 name = <bold>name1</bold> (in AClass)
13 class AClass(<bold>name1: String</bold>){ (in AClass(String))
26 val a = AClass(<bold>"hello"</bold>) (in main(Array<String>))
@@ -12,8 +12,8 @@
8 operator fun <bold>getValue(thisRef: Any?, property: KProperty<*>) = _value</bold> (in Delegate)
8 operator fun getValue(thisRef: Any?, property: KProperty<*>) = <bold>_value</bold> (in Delegate.getValue(Any?, KProperty<*>))
7 private var <bold>_value: String = ""</bold> (in Delegate)
10 _value = <bold>value</bold> (in Delegate.setValue(Any?, KProperty<*>, String))
9 operator fun setValue(thisRef: Any?, property: KProperty<*>, <bold>value: String</bold>) { (in Delegate.setValue(Any?, KProperty<*>, String))
10 _value = <bold>value</bold> (in Delegate.setValue(Any?, KProperty<*>,))
9 operator fun setValue(thisRef: Any?, property: KProperty<*>, <bold>value: String</bold>) { (in Delegate.setValue(Any?, KProperty<*>,))
21 name = <bold>"bye"</bold> (in AClass.uses())
27 val a = AClass(<bold>"hello"</bold>) (in main(Array<String>))
@@ -22,8 +22,8 @@
8 operator fun <bold>getValue(thisRef: Any?, property: KProperty<*>) = _value</bold> (in Delegate)
8 operator fun getValue(thisRef: Any?, property: KProperty<*>) = <bold>_value</bold> (in Delegate.getValue(Any?, KProperty<*>))
7 private var <bold>_value: String = ""</bold> (in Delegate)
10 _value = <bold>value</bold> (in Delegate.setValue(Any?, KProperty<*>, String))
9 operator fun setValue(thisRef: Any?, property: KProperty<*>, <bold>value: String</bold>) { (in Delegate.setValue(Any?, KProperty<*>, String))
10 _value = <bold>value</bold> (in Delegate.setValue(Any?, KProperty<*>,))
9 operator fun setValue(thisRef: Any?, property: KProperty<*>, <bold>value: String</bold>) { (in Delegate.setValue(Any?, KProperty<*>,))
17 name = <bold>name1</bold> (in AClass)
14 class AClass(<bold>name1: String</bold>){ (in AClass(String))
27 val a = AClass(<bold>"hello"</bold>) (in main(Array<String>))
@@ -4,8 +4,8 @@
8 operator fun getValue(thisRef: Any?, property: KProperty<*>) = <bold>_value</bold> (in Delegate.getValue(Any?, KProperty<*>))
7 private var <bold>_value: String = ""</bold> (in Delegate)
7 private var _value: String = <bold>""</bold> (in Delegate._value: String)
10 _value = <bold>value</bold> (in Delegate.setValue(Any?, KProperty<*>, String))
9 operator fun setValue(thisRef: Any?, property: KProperty<*>, <bold>value: String</bold>) { (in Delegate.setValue(Any?, KProperty<*>, String))
10 _value = <bold>value</bold> (in Delegate.setValue(Any?, KProperty<*>,))
9 operator fun setValue(thisRef: Any?, property: KProperty<*>, <bold>value: String</bold>) { (in Delegate.setValue(Any?, KProperty<*>,))
17 name = <bold>name1</bold> (in AClass)
14 class AClass(<bold>name1: String</bold>){ (in AClass(String))
27 val a = AClass(<bold>"hello"</bold>) (in main(Array<String>))
@@ -1,22 +1,22 @@
4 override fun foo() = <bold>4</bold> (in D.foo())
4 override fun <bold>foo() = 4</bold> (in D)
2 public int <bold>foo();</bold>
8 val x = a.<bold>foo()</bold> (in test(A, B, C, D))
8 val <bold>x = a.foo()</bold> (in test(A, B, C, D))
9 val y = b.<bold>foo()</bold> (in test(A, B, C, D))
9 val <bold>y = b.foo()</bold> (in test(A, B, C, D))
10 val z = c.<bold>foo()</bold> (in test(A, B, C, D))
10 val <bold>z = c.foo()</bold> (in test(A, B, C, D))
11 val u = d.<bold>foo()</bold> (in test(A, B, C, D))
11 val <bold>u = d.foo()</bold> (in test(A, B, C, D))
8 val x = a.<bold>foo()</bold> (in test(A, B,))
8 val <bold>x = a.foo()</bold> (in test(A, B,))
9 val y = b.<bold>foo()</bold> (in test(A, B,))
9 val <bold>y = b.foo()</bold> (in test(A, B,))
10 val z = c.<bold>foo()</bold> (in test(A, B,))
10 val <bold>z = c.foo()</bold> (in test(A, B,))
11 val u = d.<bold>foo()</bold> (in test(A, B,))
11 val <bold>u = d.foo()</bold> (in test(A, B,))
6 public int <bold>foo() {</bold>
8 DUPLICATE: val x = a.<bold>foo()</bold> (in test(A, B, C, D))
9 DUPLICATE: val y = b.<bold>foo()</bold> (in test(A, B, C, D))
10 DUPLICATE: val z = c.<bold>foo()</bold> (in test(A, B, C, D))
11 DUPLICATE: val u = d.<bold>foo()</bold> (in test(A, B, C, D))
8 DUPLICATE: val x = a.<bold>foo()</bold> (in test(A, B,))
9 DUPLICATE: val y = b.<bold>foo()</bold> (in test(A, B,))
10 DUPLICATE: val z = c.<bold>foo()</bold> (in test(A, B,))
11 DUPLICATE: val u = d.<bold>foo()</bold> (in test(A, B,))
12 public int <bold>foo();</bold>
8 DUPLICATE: val x = a.<bold>foo()</bold> (in test(A, B, C, D))
9 DUPLICATE: val y = b.<bold>foo()</bold> (in test(A, B, C, D))
10 DUPLICATE: val z = c.<bold>foo()</bold> (in test(A, B, C, D))
11 DUPLICATE: val u = d.<bold>foo()</bold> (in test(A, B, C, D))
11 DUPLICATE: val u = d.<bold>foo()</bold> (in test(A, B, C, D))
8 DUPLICATE: val x = a.<bold>foo()</bold> (in test(A, B,))
9 DUPLICATE: val y = b.<bold>foo()</bold> (in test(A, B,))
10 DUPLICATE: val z = c.<bold>foo()</bold> (in test(A, B,))
11 DUPLICATE: val u = d.<bold>foo()</bold> (in test(A, B,))
11 DUPLICATE: val u = d.<bold>foo()</bold> (in test(A, B,))
@@ -1,12 +1,12 @@
4 override fun foo() = <bold>2</bold> (in B.foo())
4 override fun <bold>foo() = 2</bold> (in B)
2 public int <bold>foo();</bold>
8 val x = a.<bold>foo()</bold> (in test(A, B, C, D))
8 val <bold>x = a.foo()</bold> (in test(A, B, C, D))
9 val y = b.<bold>foo()</bold> (in test(A, B, C, D))
9 val <bold>y = b.foo()</bold> (in test(A, B, C, D))
10 val z = c.<bold>foo()</bold> (in test(A, B, C, D))
10 val <bold>z = c.foo()</bold> (in test(A, B, C, D))
11 val u = d.<bold>foo()</bold> (in test(A, B, C, D))
11 val <bold>u = d.foo()</bold> (in test(A, B, C, D))
9 DUPLICATE: val y = b.<bold>foo()</bold> (in test(A, B, C, D))
8 val x = a.<bold>foo()</bold> (in test(A, B,))
8 val <bold>x = a.foo()</bold> (in test(A, B,))
9 val y = b.<bold>foo()</bold> (in test(A, B,))
9 val <bold>y = b.foo()</bold> (in test(A, B,))
10 val z = c.<bold>foo()</bold> (in test(A, B,))
10 val <bold>z = c.foo()</bold> (in test(A, B,))
11 val u = d.<bold>foo()</bold> (in test(A, B,))
11 val <bold>u = d.foo()</bold> (in test(A, B,))
9 DUPLICATE: val y = b.<bold>foo()</bold> (in test(A, B,))
@@ -1,12 +1,12 @@
4 override fun foo() = <bold>3</bold> (in C.foo())
4 override fun <bold>foo() = 3</bold> (in C)
2 public int <bold>foo();</bold>
8 val x = a.<bold>foo()</bold> (in test(A, B, C, D))
8 val <bold>x = a.foo()</bold> (in test(A, B, C, D))
9 val y = b.<bold>foo()</bold> (in test(A, B, C, D))
9 val <bold>y = b.foo()</bold> (in test(A, B, C, D))
10 val z = c.<bold>foo()</bold> (in test(A, B, C, D))
10 val <bold>z = c.foo()</bold> (in test(A, B, C, D))
11 val u = d.<bold>foo()</bold> (in test(A, B, C, D))
11 val <bold>u = d.foo()</bold> (in test(A, B, C, D))
10 DUPLICATE: val z = c.<bold>foo()</bold> (in test(A, B, C, D))
8 val x = a.<bold>foo()</bold> (in test(A, B,))
8 val <bold>x = a.foo()</bold> (in test(A, B,))
9 val y = b.<bold>foo()</bold> (in test(A, B,))
9 val <bold>y = b.foo()</bold> (in test(A, B,))
10 val z = c.<bold>foo()</bold> (in test(A, B,))
10 val <bold>z = c.foo()</bold> (in test(A, B,))
11 val u = d.<bold>foo()</bold> (in test(A, B,))
11 val <bold>u = d.foo()</bold> (in test(A, B,))
10 DUPLICATE: val z = c.<bold>foo()</bold> (in test(A, B,))
@@ -1,10 +1,10 @@
16 override fun foo() = <bold>4</bold> (in D.foo())
16 override fun <bold>foo() = 4</bold> (in D)
20 val x = a.<bold>foo()</bold> (in test(A, B, C, D))
20 val <bold>x = a.foo()</bold> (in test(A, B, C, D))
21 val y = b.<bold>foo()</bold> (in test(A, B, C, D))
21 val <bold>y = b.foo()</bold> (in test(A, B, C, D))
22 val z = c.<bold>foo()</bold> (in test(A, B, C, D))
22 val <bold>z = c.foo()</bold> (in test(A, B, C, D))
23 val u = d.<bold>foo()</bold> (in test(A, B, C, D))
23 val <bold>u = d.foo()</bold> (in test(A, B, C, D))
20 val x = a.<bold>foo()</bold> (in test(A, B,))
20 val <bold>x = a.foo()</bold> (in test(A, B,))
21 val y = b.<bold>foo()</bold> (in test(A, B,))
21 val <bold>y = b.foo()</bold> (in test(A, B,))
22 val z = c.<bold>foo()</bold> (in test(A, B,))
22 val <bold>z = c.foo()</bold> (in test(A, B,))
23 val u = d.<bold>foo()</bold> (in test(A, B,))
23 val <bold>u = d.foo()</bold> (in test(A, B,))
@@ -1,6 +1,6 @@
8 override fun foo() = <bold>2</bold> (in B.foo())
8 override fun <bold>foo() = 2</bold> (in B)
20 val x = a.<bold>foo()</bold> (in test(A, B, C, D))
20 val <bold>x = a.foo()</bold> (in test(A, B, C, D))
21 val y = b.<bold>foo()</bold> (in test(A, B, C, D))
21 val <bold>y = b.foo()</bold> (in test(A, B, C, D))
20 val x = a.<bold>foo()</bold> (in test(A, B,))
20 val <bold>x = a.foo()</bold> (in test(A, B,))
21 val y = b.<bold>foo()</bold> (in test(A, B,))
21 val <bold>y = b.foo()</bold> (in test(A, B,))
@@ -1,6 +1,6 @@
12 override fun foo() = <bold>3</bold> (in C.foo())
12 override fun <bold>foo() = 3</bold> (in C)
20 val x = a.<bold>foo()</bold> (in test(A, B, C, D))
20 val <bold>x = a.foo()</bold> (in test(A, B, C, D))
22 val z = c.<bold>foo()</bold> (in test(A, B, C, D))
22 val <bold>z = c.foo()</bold> (in test(A, B, C, D))
20 val x = a.<bold>foo()</bold> (in test(A, B,))
20 val <bold>x = a.foo()</bold> (in test(A, B,))
22 val z = c.<bold>foo()</bold> (in test(A, B,))
22 val <bold>z = c.foo()</bold> (in test(A, B,))
@@ -3,9 +3,9 @@
8 [LAMBDA CALLS] val x = foo(1, 2) { <bold>{ it }</bold> } (in test())
8 [LAMBDA CALLS] val x = foo(1, 2) <bold>{ { it } }</bold> (in test())
8 [LAMBDA CALLS] [LAMBDA CALLS] val x = foo(1, 2) <bold>{ { it } }</bold> (in test())
3 [LAMBDA CALLS] [LAMBDA CALLS] fun foo(a: Int, b: Int, <bold>f: (Int) -> (Int) -> Int</bold>): Int { (in foo(Int, Int, (Int) -> (Int) -> Int))
4 [LAMBDA CALLS] return <bold>f(a)</bold>(b) (in foo(Int, Int, (Int) -> (Int) -> Int))
4 return <bold>f(a)(b)</bold> (in foo(Int, Int, (Int) -> (Int) -> Int))
3 [LAMBDA CALLS] [LAMBDA CALLS] fun foo(a: Int, b: Int, <bold>f: (Int) -> (Int) -> Int</bold>): Int { (in foo(Int, Int,))
4 [LAMBDA CALLS] return <bold>f(a)</bold>(b) (in foo(Int, Int,))
4 return <bold>f(a)(b)</bold> (in foo(Int, Int,))
3 fun <bold>foo(a: Int, b: Int, f: (Int) -> (Int) -> Int): Int {</bold>
8 val x = <bold>foo(1, 2) { { it } }</bold> (in test())
8 val <bold>x = foo(1, 2) { { it } }</bold> (in test())
@@ -15,18 +15,18 @@
4 val v1 = <bold>f(p, { this })</bold> (in foo(String) on String)
4 val <bold>v1 = f(p, { this })</bold> (in foo(String) on String)
6 val v2 = g("a", "b", <bold>p</bold>, { p1, p2 -> p2 }) (in foo(String) on String)
15 fun g(a: String, b: String, <bold>c: String</bold>, lambda: String.(String, String) -> String): String { (in g(String, String, String, String.(String, String) -> String))
16 return lambda.invoke(a, b, <bold>c</bold>) (in g(String, String, String, String.(String, String) -> String))
16 [LAMBDA PARAMETER #1] return <bold>lambda</bold>.invoke(a, b, c) (in g(String, String, String, String.(String, String) -> String))
15 [LAMBDA PARAMETER #1] fun g(a: String, b: String, c: String, <bold>lambda: String.(String, String) -> String</bold>): String { (in g(String, String, String, String.(String, String) -> String))
15 fun g(a: String, b: String, <bold>c: String</bold>, lambda: String.(String, String) -> String): String { (in g(String, String,))
16 return lambda.invoke(a, b, <bold>c</bold>) (in g(String, String,))
16 [LAMBDA PARAMETER #1] return <bold>lambda</bold>.invoke(a, b, c) (in g(String, String,))
15 [LAMBDA PARAMETER #1] fun g(a: String, b: String, c: String, <bold>lambda: String.(String, String) -> String</bold>): String { (in g(String, String,))
6 [LAMBDA PARAMETER #1] val v2 = g("a", "b", p, <bold>{ p1, p2 -> p2 }</bold>) (in foo(String) on String)
6 val v2 = g("a", "b", p, { p1, <bold>p2</bold> -> p2 }) (in foo(String) on String)
6 val v2 = g("a", "b", p, { p1, p2 -> <bold>p2</bold> }) (in foo(String) on String)
6 val v2 = g("a", "b", p, <bold>{ p1, p2 -> p2 }</bold>) (in foo(String) on String)
6 [LAMBDA CALLS] val v2 = g("a", "b", p, <bold>{ p1, p2 -> p2 }</bold>) (in foo(String) on String)
15 [LAMBDA CALLS] fun g(a: String, b: String, c: String, <bold>lambda: String.(String, String) -> String</bold>): String { (in g(String, String, String, String.(String, String) -> String))
16 [LAMBDA CALLS] return <bold>lambda</bold>.invoke(a, b, c) (in g(String, String, String, String.(String, String) -> String))
16 return lambda.<bold>invoke(a, b, c)</bold> (in g(String, String, String, String.(String, String) -> String))
15 [LAMBDA CALLS] fun g(a: String, b: String, c: String, <bold>lambda: String.(String, String) -> String</bold>): String { (in g(String, String,))
16 [LAMBDA CALLS] return <bold>lambda</bold>.invoke(a, b, c) (in g(String, String,))
16 return lambda.<bold>invoke(a, b, c)</bold> (in g(String, String,))
15 fun <bold>g(a: String, b: String, c: String, lambda: String.(String, String) -> String): String {</bold>
6 val v2 = <bold>g("a", "b", p, { p1, p2 -> p2 })</bold> (in foo(String) on String)
6 val <bold>v2 = g("a", "b", p, { p1, p2 -> p2 })</bold> (in foo(String) on String)
+9 -9
View File
@@ -1,18 +1,18 @@
3 fun String.foo(<bold>p: String</bold>) { (in foo(String) on String)
4 val v = bar(<bold>p</bold>, true, { this }) (in foo(String) on String)
7 fun bar(<bold>receiver: String</bold>, b: Boolean, lambda: (String.() -> String)?): String { (in bar(String, Boolean, (String.() -> String)?))
8 return if (b) lambda!!.invoke(<bold>receiver</bold>) else "" (in bar(String, Boolean, (String.() -> String)?))
8 [LAMBDA RECEIVER] return if (b) <bold>lambda!!</bold>.invoke(receiver) else "" (in bar(String, Boolean, (String.() -> String)?))
8 [LAMBDA RECEIVER] return if (b) <bold>lambda</bold>!!.invoke(receiver) else "" (in bar(String, Boolean, (String.() -> String)?))
7 [LAMBDA RECEIVER] fun bar(receiver: String, b: Boolean, <bold>lambda: (String.() -> String)?</bold>): String { (in bar(String, Boolean, (String.() -> String)?))
7 fun bar(<bold>receiver: String</bold>, b: Boolean, lambda: (String.() -> String)?): String { (in bar(String, Boolean,))
8 return if (b) lambda!!.invoke(<bold>receiver</bold>) else "" (in bar(String, Boolean,))
8 [LAMBDA RECEIVER] return if (b) <bold>lambda!!</bold>.invoke(receiver) else "" (in bar(String, Boolean,))
8 [LAMBDA RECEIVER] return if (b) <bold>lambda</bold>!!.invoke(receiver) else "" (in bar(String, Boolean,))
7 [LAMBDA RECEIVER] fun bar(receiver: String, b: Boolean, <bold>lambda: (String.() -> String)?</bold>): String { (in bar(String, Boolean,))
4 [LAMBDA RECEIVER] val v = bar(p, true, <bold>{ this }</bold>) (in foo(String) on String)
4 val v = bar(p, true, { <bold>this</bold> }) (in foo(String) on String)
4 val v = bar(p, true, <bold>{ this }</bold>) (in foo(String) on String)
4 [LAMBDA CALLS] val v = bar(p, true, <bold>{ this }</bold>) (in foo(String) on String)
7 [LAMBDA CALLS] fun bar(receiver: String, b: Boolean, <bold>lambda: (String.() -> String)?</bold>): String { (in bar(String, Boolean, (String.() -> String)?))
8 [LAMBDA CALLS] return if (b) <bold>lambda</bold>!!.invoke(receiver) else "" (in bar(String, Boolean, (String.() -> String)?))
8 [LAMBDA CALLS] return if (b) <bold>lambda!!</bold>.invoke(receiver) else "" (in bar(String, Boolean, (String.() -> String)?))
8 return if (b) lambda!!.<bold>invoke(receiver)</bold> else "" (in bar(String, Boolean, (String.() -> String)?))
7 [LAMBDA CALLS] fun bar(receiver: String, b: Boolean, <bold>lambda: (String.() -> String)?</bold>): String { (in bar(String, Boolean,))
8 [LAMBDA CALLS] return if (b) <bold>lambda</bold>!!.invoke(receiver) else "" (in bar(String, Boolean,))
8 [LAMBDA CALLS] return if (b) <bold>lambda!!</bold>.invoke(receiver) else "" (in bar(String, Boolean,))
8 return if (b) lambda!!.<bold>invoke(receiver)</bold> else "" (in bar(String, Boolean,))
7 fun <bold>bar(receiver: String, b: Boolean, lambda: (String.() -> String)?): String {</bold>
4 val v = <bold>bar(p, true, { this })</bold> (in foo(String) on String)
4 val <bold>v = bar(p, true, { this })</bold> (in foo(String) on String)
@@ -1,6 +1,6 @@
8 override fun foo() = <bold>2</bold> (in B.foo())
8 override fun <bold>foo() = 2</bold> (in B)
16 val x = a.<bold>foo()</bold> (in test(A, B, C))
16 val <bold>x = a.foo()</bold> (in test(A, B, C))
17 val y = b.<bold>foo()</bold> (in test(A, B, C))
17 val <bold>y = b.foo()</bold> (in test(A, B, C))
16 val x = a.<bold>foo()</bold> (in test(A, B,))
16 val <bold>x = a.foo()</bold> (in test(A, B,))
17 val y = b.<bold>foo()</bold> (in test(A, B,))
17 val <bold>y = b.foo()</bold> (in test(A, B,))
@@ -1,10 +1,10 @@
4 override fun foo() = <bold>2</bold> (in B.foo())
4 override fun <bold>foo() = 2</bold> (in B)
2 public int <bold>foo() {</bold>
8 val x = a.<bold>foo()</bold> (in test(A, B, C))
8 val <bold>x = a.foo()</bold> (in test(A, B, C))
9 val y = b.<bold>foo()</bold> (in test(A, B, C))
9 val <bold>y = b.foo()</bold> (in test(A, B, C))
10 val z = c.<bold>foo()</bold> (in test(A, B, C))
10 val <bold>z = c.foo()</bold> (in test(A, B, C))
9 DUPLICATE: val y = b.<bold>foo()</bold> (in test(A, B, C))
8 val x = a.<bold>foo()</bold> (in test(A, B,))
8 val <bold>x = a.foo()</bold> (in test(A, B,))
9 val y = b.<bold>foo()</bold> (in test(A, B,))
9 val <bold>y = b.foo()</bold> (in test(A, B,))
10 val z = c.<bold>foo()</bold> (in test(A, B,))
10 val <bold>z = c.foo()</bold> (in test(A, B,))
9 DUPLICATE: val y = b.<bold>foo()</bold> (in test(A, B,))
@@ -1,8 +1,8 @@
10 override val foo = <bold>3</bold> (in C.foo: Int)
10 override val <bold>foo = 3</bold> (in C)
14 val x = a.<bold>foo</bold> (in test(A, B, C))
14 val <bold>x = a.foo</bold> (in test(A, B, C))
15 val y = b.<bold>foo</bold> (in test(A, B, C))
15 val <bold>y = b.foo</bold> (in test(A, B, C))
16 val z = c.<bold>foo</bold> (in test(A, B, C))
16 val <bold>z = c.foo</bold> (in test(A, B, C))
14 val x = a.<bold>foo</bold> (in test(A, B,))
14 val <bold>x = a.foo</bold> (in test(A, B,))
15 val y = b.<bold>foo</bold> (in test(A, B,))
15 val <bold>y = b.foo</bold> (in test(A, B,))
16 val z = c.<bold>foo</bold> (in test(A, B,))
16 val <bold>z = c.foo</bold> (in test(A, B,))
@@ -1,6 +1,6 @@
10 get() = <bold>2</bold> (in B.foo: Int)
10 <bold>get() = 2</bold> (in B.foo: Int)
19 val x = a.<bold>foo</bold> (in test(A, B, C))
19 val <bold>x = a.foo</bold> (in test(A, B, C))
20 val y = b.<bold>foo</bold> (in test(A, B, C))
20 val <bold>y = b.foo</bold> (in test(A, B, C))
19 val x = a.<bold>foo</bold> (in test(A, B,))
19 val <bold>x = a.foo</bold> (in test(A, B,))
20 val y = b.<bold>foo</bold> (in test(A, B,))
20 val <bold>y = b.foo</bold> (in test(A, B,))
@@ -1,6 +1,6 @@
8 override val foo = <bold>2</bold> (in B.foo: Int)
8 override val <bold>foo = 2</bold> (in B)
16 val x = a.<bold>foo</bold> (in test(A, B, C))
16 val <bold>x = a.foo</bold> (in test(A, B, C))
17 val y = b.<bold>foo</bold> (in test(A, B, C))
17 val <bold>y = b.foo</bold> (in test(A, B, C))
16 val x = a.<bold>foo</bold> (in test(A, B,))
16 val <bold>x = a.foo</bold> (in test(A, B,))
17 val y = b.<bold>foo</bold> (in test(A, B,))
17 val <bold>y = b.foo</bold> (in test(A, B,))