Fix source information mapping in PsiSourceManager

Add tests for source information mapping

KT-17108 source information corrupted on PSI -> IR transformation
This commit is contained in:
Dmitry Petrov
2017-03-28 14:40:35 +03:00
parent 4086a84622
commit 2a97fb17ba
9 changed files with 218 additions and 6 deletions
+7
View File
@@ -0,0 +1,7 @@
@0:0..26:1 FILE /kt17108.kt
@0:0..26:1 CLASS INTERFACE Boolean
@5:4..8:38 FUN public abstract operator fun not(): Boolean
@10:4..13:42 FUN public abstract infix fun and(other: Boolean): Boolean
@15:4..18:41 FUN public abstract infix fun or(other: Boolean): Boolean
@20:4..23:42 FUN public abstract infix fun xor(other: Boolean): Boolean
@25:4..38 FUN public abstract fun compareTo(other: Boolean): kotlin.Int