KT-38027 Support Code Vision feature in Kotlin

This commit is contained in:
Andrei Klunnyi
2020-04-30 11:58:50 +02:00
parent 4c8f9e4e06
commit b08f501aac
30 changed files with 2531 additions and 3 deletions
@@ -0,0 +1,17 @@
// MODE: usages
<# block [ 1 Usage] #>
interface SomeInterface {
<# block [ 3 Usages] #>
fun someFun(): String
fun someOtherFun() = someFun() // <== (1): delegation from another interface method
val someProperty = someFun() // <== (2): property initializer
}
fun main() {
val instance = object: SomeInterface {
<# block [ 1 Usage] #>
override fun someFun(): String {} // <== (): used below
}
instance.someFun() <== (3): call on an instance
}