add isKotlinSourceElement method to Source interface in order to recognize kotlin source elements during compilation
This commit is contained in:
+2
@@ -23,6 +23,8 @@ import org.jetbrains.kotlin.load.java.structure.reflect.ReflectJavaElement
|
||||
|
||||
public object RuntimeSourceElementFactory : JavaSourceElementFactory {
|
||||
private class RuntimeSourceElement(override val javaElement: ReflectJavaElement) : JavaSourceElement {
|
||||
|
||||
override fun isKotlinSourceElement(): Boolean = false
|
||||
override fun toString() = javaClass.name + ": " + javaElement.toString()
|
||||
}
|
||||
|
||||
|
||||
+3
-1
@@ -18,4 +18,6 @@ package org.jetbrains.kotlin.load.kotlin.reflect
|
||||
|
||||
import org.jetbrains.kotlin.descriptors.SourceElement
|
||||
|
||||
public class ReflectAnnotationSource(public val annotation: Annotation) : SourceElement
|
||||
public class ReflectAnnotationSource(public val annotation: Annotation) : SourceElement {
|
||||
override fun isKotlinSourceElement(): Boolean = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user