[LC] add isEquivalentTo implementation so LC can be referenced from java

otherwise references from java to ktElements won't be treated as references,
cause java references resolve to light elements and search can/should be called
on ktElements
This commit is contained in:
Anna Kozlova
2022-12-22 18:39:48 +01:00
committed by teamcity
parent bf60819824
commit d7179d929f
21 changed files with 199 additions and 7 deletions
@@ -0,0 +1,2 @@
// org.jetbrains.kotlin.light.classes.symbol.classes.SymbolLightClassForAnnotationClass
annotation class Fo<caret>oBar
@@ -0,0 +1,4 @@
// org.jetbrains.kotlin.light.classes.symbol.classes.SymbolLightClassForAnonymousObject
val f = obje<caret>ct : I {}
interface I {}
@@ -0,0 +1,6 @@
// org.jetbrains.kotlin.light.classes.symbol.fields.SymbolLightFieldForProperty
class FooBar {
companion object {
var f<caret>oo : String = ""
}
}
@@ -0,0 +1,6 @@
// org.jetbrains.kotlin.light.classes.symbol.methods.SymbolLightConstructor
class FooBar {
cons<caret>tructor() {
}
}
@@ -0,0 +1,8 @@
// org.jetbrains.kotlin.light.classes.symbol.classes.SymbolLightClassForEnumEntry
enum class FooBar {
EnumClass<caret>Entry {
fun foo() {
}
}
}
@@ -0,0 +1,2 @@
// org.jetbrains.kotlin.light.classes.symbol.methods.SymbolLightSimpleMethod
fun foo<caret>Bar() {}
@@ -0,0 +1,2 @@
// org.jetbrains.kotlin.light.classes.symbol.classes.SymbolLightClassForInterface
interface Fo<caret>oBar
@@ -0,0 +1,2 @@
// org.jetbrains.kotlin.light.classes.symbol.classes.SymbolLightClassForClassOrObject
cl<caret>ass FooBar
@@ -0,0 +1,2 @@
// org.jetbrains.kotlin.light.classes.symbol.parameters.SymbolLightTypeParameter
interface FooBar<<caret>T>