SourceNavigationHelper: fix navigation to callables
Previously we could differentiate between callables with the same name
when relevant type declaration were in the same file only
Problem manifested most severely when several copies of sources were attached
to the same library
This commit is contained in:
+5
-1
@@ -1,4 +1,8 @@
|
||||
package testData.libraries
|
||||
|
||||
public fun func(str : kotlin.String) {
|
||||
}
|
||||
}
|
||||
|
||||
public fun processDouble(d: Double) {}
|
||||
|
||||
public fun processDouble(d: kotlin.Double) {}
|
||||
@@ -111,11 +111,6 @@ public inline fun <T> T.filter(predicate: (T)-> Boolean) : T? = this
|
||||
|
||||
public class Double
|
||||
|
||||
public fun processDouble(d: Double) {}
|
||||
|
||||
public fun processDouble(d: kotlin.Double) {}
|
||||
|
||||
|
||||
public fun <T: CharSequence> funWithTypeParam(t: T) {
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
Double.class
|
||||
Double.class
|
||||
public final class Double public <3>constructor() {
|
||||
MainKt.class
|
||||
ExtraKt.class
|
||||
public fun <1>processDouble(d: kotlin.Double): kotlin.Unit { /* compiled code */ }
|
||||
|
||||
public fun <2>processDouble(d: testData.libraries.Double): kotlin.Unit { /* compiled code */ }
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
main.kt
|
||||
public class <3>Double
|
||||
|
||||
extra.kt
|
||||
public fun <2>processDouble(d: Double) {}
|
||||
|
||||
public fun <1>processDouble(d: kotlin.Double) {}
|
||||
main.kt
|
||||
public class <3>Double
|
||||
|
||||
Reference in New Issue
Block a user