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
@@ -56,6 +56,11 @@ public class ForTestCompileRuntime {
return assertExists(new File("dist/kotlinc/lib/kotlin-script-runtime.jar"));
}
@NotNull
public static File runtimeSourcesJarForTests() {
return assertExists(new File("dist/kotlinc/lib/kotlin-runtime-sources.jar"));
}
// TODO: Do not use these classes, remove them after stdlib tests are merged in the same build as the compiler
@NotNull
@Deprecated