Navigation: Support "Navigate/Related Symbol" for expects/actuals

#KT-20952 Fixed
This commit is contained in:
Alexey Sedunov
2017-11-01 18:17:17 +03:00
parent b2e5e9dab5
commit b20ffe76b7
42 changed files with 386 additions and 41 deletions
@@ -0,0 +1,5 @@
package test
expect class Foo {
fun bar()
}
@@ -0,0 +1,5 @@
package test
actual class Foo {
actual fun bar() {}
}
@@ -0,0 +1,7 @@
package test
actual class Foo {
actual fun <caret>bar() {}
}
// REF: [common] (in test.Foo).bar()
@@ -0,0 +1,5 @@
package test
expect class Foo {
val bar: Int
}
@@ -0,0 +1,5 @@
package test
actual class Foo {
actual val bar: Int get() = 1
}
@@ -0,0 +1,7 @@
package test
actual class Foo {
actual val <caret>bar: Int get() = 1
}
// REF: [common] (in test.Foo).bar
@@ -0,0 +1,8 @@
package test
expect class Foo {
fun <caret>bar()
}
// REF: [jvm] (in test.Foo).bar()
// REF: [js] (in test.Foo).bar()
@@ -0,0 +1,5 @@
package test
actual class Foo {
actual fun bar() {}
}
@@ -0,0 +1,5 @@
package test
actual class Foo {
actual fun bar() {}
}
@@ -0,0 +1,8 @@
package test
expect class Foo {
val <caret>bar: Int
}
// REF: [jvm] (in test.Foo).bar
// REF: [js] (in test.Foo).bar
@@ -0,0 +1,5 @@
package test
actual class Foo {
actual val bar: Int get() = 1
}
@@ -0,0 +1,5 @@
package test
actual class Foo {
actual val bar: Int get() = 1
}
@@ -0,0 +1,5 @@
package test
expect class Foo {
class Bar
}
@@ -0,0 +1,5 @@
package test
actual class Foo {
actual class Bar
}
@@ -0,0 +1,7 @@
package test
actual class Foo {
actual class <caret>Bar
}
// REF: [common] (in test.Foo).Bar
@@ -0,0 +1,8 @@
package test
expect class Foo {
class <caret>Bar
}
// REF: [js] (in test.Foo).Bar
// REF: [jvm] (in test.Foo).Bar
@@ -0,0 +1,5 @@
package test
actual class Foo {
actual class Bar
}
@@ -0,0 +1,5 @@
package test
actual class Foo {
actual class Bar
}
@@ -0,0 +1,3 @@
package test
expect class Foo
@@ -0,0 +1,3 @@
package test
actual class Foo
@@ -0,0 +1,5 @@
package test
actual class <caret>Foo
// REF: [common] (test).Foo
@@ -0,0 +1,3 @@
package test
expect fun foo()
@@ -0,0 +1,3 @@
package test
actual fun foo() {}
@@ -0,0 +1,5 @@
package test
actual fun <caret>foo() {}
// REF: [common] (test).foo()
@@ -0,0 +1,3 @@
package test
expect val foo: Int
@@ -0,0 +1,3 @@
package test
actual val foo: Int get() = 1
@@ -0,0 +1,5 @@
package test
actual val <caret>foo: Int get() = 1
// REF: [common] (test).foo
@@ -0,0 +1,6 @@
package test
expect class <caret>Foo
// REF: [jvm] (test).Foo
// REF: [js] (test).Foo
@@ -0,0 +1,3 @@
package test
actual class Foo
@@ -0,0 +1,3 @@
package test
actual class Foo
@@ -0,0 +1,6 @@
package test
expect fun <caret>foo()
// REF: [jvm] (test).foo()
// REF: [js] (test).foo()
@@ -0,0 +1,3 @@
package test
actual fun foo() {}
@@ -0,0 +1,3 @@
package test
actual fun foo() {}
@@ -0,0 +1,6 @@
package test
expect val <caret>foo: Int
// REF: [jvm] (test).foo
// REF: [js] (test).foo
@@ -0,0 +1,3 @@
package test
actual val foo: Int get() = 1
@@ -0,0 +1,3 @@
package test
actual val foo: Int get() = 1