findDecompiledDeclaration: find builtIns more accurately

Use resolveScope of a reference to help searching for builtIn binaries
Do not search non-builtIn descriptors in random scopes
This commit is contained in:
Pavel V. Talanov
2017-03-21 18:38:20 +03:00
parent 265e765ec9
commit ca6516c2a2
8 changed files with 119 additions and 44 deletions
@@ -0,0 +1,6 @@
Sequence.class
public interface <1>Sequence<out T> {
collections.kotlin_builtins
public interface <3>Map<K, out V> {
kotlin.kotlin_builtins
public final class <2><4><5>Int private constructor() : kotlin.Number, kotlin.Comparable<kotlin.Int> {
@@ -0,0 +1,6 @@
Collections.kt
public interface <3>Map<K, out V> {
Primitives.kt
public class <2><4><5>Int private constructor() : Number(), Comparable<Int> {
Sequence.kt
public interface <1>Sequence<out T> {
@@ -0,0 +1,2 @@
fun main(s: Sequence<Int>, m: Map<Int, Int>) {
}