test data for position manager

This commit is contained in:
Alexander Udalov
2012-08-17 18:17:12 +04:00
parent 8ddeddc895
commit dc2d21e0c9
15 changed files with 180 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
annotation class A {
fun foo() {
"" // A
}
}
@@ -0,0 +1,7 @@
class A {
fun foo() {
{
"" // A$foo$1
}()
}
}
+9
View File
@@ -0,0 +1,9 @@
class A {
val x = go() // A
fun go() = 4 // A
fun foo() {
"" // A
}
}
+7
View File
@@ -0,0 +1,7 @@
class A {
class object {
fun foo() {
"" // A$ClassObject$
}
}
}
+5
View File
@@ -0,0 +1,5 @@
enum class E {
fun foo() {
"" // E
}
}
@@ -0,0 +1,8 @@
package a
class A {
}
fun A.foo() {
"" // a/namespace
}
+7
View File
@@ -0,0 +1,7 @@
class A {
class B {
fun foo() {
"" // A$B
}
}
}
+8
View File
@@ -0,0 +1,8 @@
package test
fun foo(): String {
fun bar(): String {
return "" // test/namespace$foo$1
}
return bar()
}
+3
View File
@@ -0,0 +1,3 @@
fun foo() {
"" // namespace
}
@@ -0,0 +1,5 @@
package test
fun foo() {
"" // test/namespace
}
@@ -0,0 +1,7 @@
object Obj {
val x = foo() // Obj
fun foo(): Int {
return 0 // Obj
}
}
@@ -0,0 +1,9 @@
class A {
fun foo() {
object {
fun bar() {
"" // A$foo$1
}
}
}
}
@@ -0,0 +1,4 @@
class A {
val foo: Int
get() = 5 // A
}
+5
View File
@@ -0,0 +1,5 @@
trait A {
fun foo() {
"" // A$$TImpl
}
}