Place light classes finder before standard PsiElementFinderImpl

Source elements should have priority over libraries.

Original commit: 3c7e7ffda6
This commit is contained in:
Nikolay Krasko
2015-05-08 16:22:27 +03:00
parent 1937ee3986
commit 395e5446fb
9 changed files with 95 additions and 0 deletions
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="xUTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="jdk" jdkName="IDEA_JDK" jdkType="JavaSDK" />
<orderEntry type="module" module-name="module2" />
</component>
</module>
@@ -0,0 +1,6 @@
package module
public trait A {
fun oldFun(): Int = 1
fun newFun(): Int = 42
}
@@ -0,0 +1,9 @@
package module
public class B(private val c: C) {
fun foo() {
val a = c.getA()
a.oldFun()
a.newFun()
}
}
@@ -0,0 +1,5 @@
package module;
public interface C {
A getA();
}