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:
Pavel V. Talanov
2018-08-01 18:43:54 +02:00
parent c250f7fca4
commit e9a9f2a1aa
8 changed files with 107 additions and 31 deletions
+44
View File
@@ -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
}
}