Navigation: Support "Navigate/Related Symbol" for expects/actuals
#KT-20952 Fixed
This commit is contained in:
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
expect class Foo {
|
||||
fun bar()
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
actual class Foo {
|
||||
actual fun bar() {}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
actual class Foo {
|
||||
actual fun <caret>bar() {}
|
||||
}
|
||||
|
||||
// REF: [common] (in test.Foo).bar()
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
expect class Foo {
|
||||
val bar: Int
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
actual class Foo {
|
||||
actual val bar: Int get() = 1
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
actual class Foo {
|
||||
actual val <caret>bar: Int get() = 1
|
||||
}
|
||||
|
||||
// REF: [common] (in test.Foo).bar
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
expect class Foo {
|
||||
fun <caret>bar()
|
||||
}
|
||||
|
||||
// REF: [jvm] (in test.Foo).bar()
|
||||
// REF: [js] (in test.Foo).bar()
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
actual class Foo {
|
||||
actual fun bar() {}
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
actual class Foo {
|
||||
actual fun bar() {}
|
||||
}
|
||||
Vendored
+8
@@ -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
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
actual class Foo {
|
||||
actual val bar: Int get() = 1
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
actual class Foo {
|
||||
actual val bar: Int get() = 1
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
expect class Foo {
|
||||
class Bar
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
actual class Foo {
|
||||
actual class Bar
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
actual class Foo {
|
||||
actual class <caret>Bar
|
||||
}
|
||||
|
||||
// REF: [common] (in test.Foo).Bar
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
expect class Foo {
|
||||
class <caret>Bar
|
||||
}
|
||||
|
||||
// REF: [js] (in test.Foo).Bar
|
||||
// REF: [jvm] (in test.Foo).Bar
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
actual class Foo {
|
||||
actual class Bar
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
actual class Foo {
|
||||
actual class Bar
|
||||
}
|
||||
idea/testData/navigation/relatedSymbols/multiModule/fromTopLevelActualClassToExpect/common/common.kt
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
expect class Foo
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
actual class Foo
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
actual class <caret>Foo
|
||||
|
||||
// REF: [common] (test).Foo
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
expect fun foo()
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
actual fun foo() {}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
actual fun <caret>foo() {}
|
||||
|
||||
// REF: [common] (test).foo()
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
expect val foo: Int
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
actual val foo: Int get() = 1
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
actual val <caret>foo: Int get() = 1
|
||||
|
||||
// REF: [common] (test).foo
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
expect class <caret>Foo
|
||||
|
||||
// REF: [jvm] (test).Foo
|
||||
// REF: [js] (test).Foo
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
actual class Foo
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
actual class Foo
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
expect fun <caret>foo()
|
||||
|
||||
// REF: [jvm] (test).foo()
|
||||
// REF: [js] (test).foo()
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
actual fun foo() {}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
actual fun foo() {}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
expect val <caret>foo: Int
|
||||
|
||||
// REF: [jvm] (test).foo
|
||||
// REF: [js] (test).foo
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
actual val foo: Int get() = 1
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
actual val foo: Int get() = 1
|
||||
Reference in New Issue
Block a user