Presentation for extension property to include receiver type

This commit is contained in:
Valentin Kipyatkov
2015-11-10 14:50:48 +03:00
parent 6a52cc76d0
commit f391d194de
39 changed files with 97 additions and 179 deletions
@@ -2,4 +2,4 @@
public class Class {
}
// REF: (k.KAnno).d
// REF: (in k.KAnno).d
@@ -4,4 +4,4 @@ public class AutoGeneratedOverloads {
}
}
// REF: (in k).withJvmOverloads(Int,Boolean,String)
// REF: (k).withJvmOverloads(Int, Boolean, String)
@@ -6,4 +6,4 @@ public class ClassObjectField {
}
}
// REF: (k.StaticFieldInClassObjectInTrait.Companion).XX
// REF: (in k.StaticFieldInClassObjectInTrait.Companion).XX
+1 -1
View File
@@ -4,4 +4,4 @@ public class EnumEntry {
}
}
// REF: (k.EnumClass).ENTRY
// REF: (in k.EnumClass).ENTRY
+1 -1
View File
@@ -4,4 +4,4 @@ public class Getter {
}
}
// REF: (k.Class).prop
// REF: (in k.Class).prop
+1 -1
View File
@@ -5,4 +5,4 @@ val tl = <caret>topLevel()
// CONTEXT: return <ref-caret>local()
// WITH_LIBRARY: /resolve/referenceInLib/inLibrarySource
// REF: .local()
// REF: local()
@@ -9,5 +9,5 @@ class B {
}
// MULTIRESOLVE
// REF: (for T in dependency).getValue(R,kotlin.reflect.KProperty<*>)
// REF: (for T in dependency).setValue(R,kotlin.reflect.KProperty<*>,kotlin.Int)
// REF: (for T in dependency).getValue(R, kotlin.reflect.KProperty<*>)
// REF: (for T in dependency).setValue(R, kotlin.reflect.KProperty<*>, kotlin.Int)
@@ -4,4 +4,4 @@ import dependency.*
val a: Outer.<caret>Inner? = null
// REF: (dependency.Outer).Inner
// REF: (in dependency.Outer).Inner
@@ -4,4 +4,4 @@ import dependency.*
val a: Outer.<caret>Nested? = null
// REF: (dependency.Outer).Nested
// REF: (in dependency.Outer).Nested
@@ -6,4 +6,4 @@ fun foo(a: List<Int>) {
a[<caret>"bar"] = 3
}
// REF: (for kotlin.List<T> in dependency).set(kotlin.String,T)
// REF: (for kotlin.List<T> in dependency).set(kotlin.String, T)
+1 -1
View File
@@ -2,4 +2,4 @@
package foo
// REF: (in kotlin.Deprecated).Deprecated(kotlin.String,kotlin.ReplaceWith,kotlin.DeprecationLevel)
// REF: (in kotlin.Deprecated).Deprecated(kotlin.String, kotlin.ReplaceWith, kotlin.DeprecationLevel)
@@ -4,4 +4,4 @@ package foo
import kotlin.Deprecated as D
// REF: (in kotlin.Deprecated).Deprecated(kotlin.String,kotlin.ReplaceWith,kotlin.DeprecationLevel)
// REF: (in kotlin.Deprecated).Deprecated(kotlin.String, kotlin.ReplaceWith, kotlin.DeprecationLevel)
@@ -4,5 +4,5 @@ class Foo
fun Foo.getValue(_this: Any?, p: Any?): Int = 1
// REF: (for Foo in <root>).getValue(Any?,Any?)
// REF: (for Foo in <root>).getValue(Any?, Any?)
@@ -4,5 +4,5 @@ class Foo {
fun getValue(_this: Any?, p: Any?): Int = 1
}
// REF: (in Foo).getValue(Any?,Any?)
// REF: (in Foo).getValue(Any?, Any?)
@@ -15,6 +15,6 @@ interface Zoo {
class Baz: Foo, Bar, Zoo
// MULTIRESOLVE
// REF: (in Bar).getValue(Any?,Any?)
// REF: (in Foo).getValue(Any?,Any?)
// REF: (in Zoo).setValue(Any?,Any?,Any?)
// REF: (in Bar).getValue(Any?, Any?)
// REF: (in Foo).getValue(Any?, Any?)
// REF: (in Zoo).setValue(Any?, Any?, Any?)
@@ -6,4 +6,4 @@ interface Foo {
class Baz: Foo
// REF: (in Foo).getValue(Any?,Any?)
// REF: (in Foo).getValue(Any?, Any?)
@@ -7,7 +7,7 @@ fun Foo.setValue(_this: Any?, p: Any?, val: Any?) {}
fun Foo.propertyDelegated(p: Any?) {}
// MULTIRESOLVE
// REF: (for Foo in <root>).getValue(Any?,Any?)
// REF: (for Foo in <root>).setValue(Any?,Any?,Any?)
// REF: (for Foo in <root>).getValue(Any?, Any?)
// REF: (for Foo in <root>).setValue(Any?, Any?, Any?)
// REF: (for Foo in <root>).propertyDelegated(Any?)
@@ -7,7 +7,7 @@ class Foo {
}
// MULTIRESOLVE
// REF: (in Foo).getValue(Any?,Any?)
// REF: (in Foo).setValue(Any?,Any?,Any?)
// REF: (in Foo).getValue(Any?, Any?)
// REF: (in Foo).setValue(Any?, Any?, Any?)
// REF: (in Foo).propertyDelegated(Any?)
@@ -1,3 +1,3 @@
val x: Int <caret>by lazy {1}
// REF: (for kotlin.Lazy<T> in kotlin).getValue(kotlin.Any?,kotlin.reflect.KProperty<*>)
// REF: (for kotlin.Lazy<T> in kotlin).getValue(kotlin.Any?, kotlin.reflect.KProperty<*>)
@@ -3,5 +3,5 @@ import kotlin.properties.Delegates
var x: Int <caret>by Delegates.notNull()
// MULTIRESOLVE
// REF: (in kotlin.properties.ReadWriteProperty).getValue(R,kotlin.reflect.KProperty<*>)
// REF: (in kotlin.properties.ReadWriteProperty).setValue(R,kotlin.reflect.KProperty<*>,T)
// REF: (in kotlin.properties.ReadWriteProperty).getValue(R, kotlin.reflect.KProperty<*>)
// REF: (in kotlin.properties.ReadWriteProperty).setValue(R, kotlin.reflect.KProperty<*>, T)