Implement custom TargetElementEvaluator KT-4190 #Fixed

This commit is contained in:
Alexey Sedunov
2013-11-18 17:10:57 +04:00
parent 38b38e7b6d
commit 6b971fa50c
16 changed files with 131 additions and 2 deletions
@@ -0,0 +1,10 @@
package testing
abstract class Test
open class TestOther : <caret>Test()
class TestOtherMore : TestOther()
// REF: (testing).TestOther
// REF: (testing).TestOtherMore
@@ -0,0 +1,16 @@
package testing
trait Test
trait TestMore: <caret>Test
open class TestClass1: Test
class TestClass2: TestClass1()
class TestClass3: TestMore
// REF: (testing).TestMore
// REF: (testing).TestClass1
// REF: (testing).TestClass2
// REF: (testing).TestClass3
@@ -0,0 +1,5 @@
package testing.kt
class KotlinImpl : <caret>JavaBase()
// REF: (testing.kt).KotlinImpl
@@ -0,0 +1,8 @@
package testing.kt
trait KotlinTrait: <caret>JavaBase
class KotlinClass : JavaBase
// REF: (testing.kt).KotlinClass
// REF: (testing.kt).KotlinTrait
@@ -0,0 +1,4 @@
package testing.jj;
class JavaImplementation extends testing.kt.Base {
}
@@ -0,0 +1,5 @@
package testing.kt
abstract class <caret>Base
// REF: (testing.jj).JavaImplementation
@@ -0,0 +1,7 @@
package testing.jj;
class JavaClass implements testing.kt.Base {
}
interface JavaInterface extends testing.kt.Base {
}
@@ -0,0 +1,9 @@
package testing.kt
trait Base
trait Derived: <caret>Base
// REF: (testing.jj).JavaClass
// REF: (testing.jj).JavaInterface
// REF: (testing.kt).Derived