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:
Pavel V. Talanov
2017-03-20 16:50:45 +03:00
parent d9a9d50602
commit dec9fa0324
5 changed files with 12 additions and 33 deletions
+5 -1
View File
@@ -1,4 +1,8 @@
package testData.libraries
public fun func(str : kotlin.String) {
}
}
public fun processDouble(d: Double) {}
public fun processDouble(d: kotlin.Double) {}
-5
View File
@@ -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) {
}
@@ -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 */ }
@@ -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