Dsl highlighting: support highlighting properties
Fix properties not being highlighted Fix test infrastructure to verify actual output of highlighting visitors
This commit is contained in:
+44
@@ -0,0 +1,44 @@
|
||||
package p
|
||||
|
||||
@DslMarker
|
||||
annotation class A
|
||||
|
||||
@DslMarker
|
||||
annotation class B
|
||||
|
||||
@A
|
||||
val AC.p1: Int
|
||||
get() = 3
|
||||
|
||||
@A
|
||||
var p2: Int = 5
|
||||
|
||||
@B
|
||||
val BC.p3
|
||||
get() = 6
|
||||
|
||||
|
||||
@B
|
||||
var BC.p7
|
||||
get() = 3
|
||||
set(i) {}
|
||||
|
||||
@A
|
||||
class AC
|
||||
|
||||
@B
|
||||
class BC
|
||||
|
||||
fun test() {
|
||||
p2 // 4
|
||||
p2 = 6 // 4
|
||||
|
||||
with(AC()) {
|
||||
p1 // 4
|
||||
}
|
||||
with(BC()) {
|
||||
p3 // 1
|
||||
p7 // 1
|
||||
p7 = 3 // 1
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user