FIR IDE: introduce KtFirArrayAccessReference

This commit is contained in:
Ilya Kirillov
2020-07-13 15:28:11 +03:00
parent 22054c8507
commit 0870ded054
10 changed files with 108 additions and 4 deletions
+7
View File
@@ -0,0 +1,7 @@
fun a () {
val list = mutableListOf(1)
println(list<caret>[0])
}
// REF: (in kotlin.collections.List).get(kotlin.Int)
+7
View File
@@ -0,0 +1,7 @@
fun a () {
val list = mutableListOf(1)
list<caret>[0] = 1
}
// REF: (in kotlin.collections.MutableList).set(kotlin.Int, E)