Minor, add toString() for easier debug
This commit is contained in:
+3
-1
@@ -18,4 +18,6 @@ package org.jetbrains.kotlin.load.kotlin
|
|||||||
|
|
||||||
import org.jetbrains.kotlin.descriptors.SourceElement
|
import org.jetbrains.kotlin.descriptors.SourceElement
|
||||||
|
|
||||||
public class KotlinJvmBinarySourceElement(public val binaryClass: KotlinJvmBinaryClass) : SourceElement
|
public class KotlinJvmBinarySourceElement(public val binaryClass: KotlinJvmBinaryClass) : SourceElement {
|
||||||
|
override fun toString() = javaClass.name + ": " + binaryClass.toString()
|
||||||
|
}
|
||||||
|
|||||||
+3
-1
@@ -22,7 +22,9 @@ import org.jetbrains.kotlin.load.java.structure.JavaElement
|
|||||||
import org.jetbrains.kotlin.load.java.structure.reflect.ReflectJavaElement
|
import org.jetbrains.kotlin.load.java.structure.reflect.ReflectJavaElement
|
||||||
|
|
||||||
public object RuntimeSourceElementFactory : JavaSourceElementFactory {
|
public object RuntimeSourceElementFactory : JavaSourceElementFactory {
|
||||||
private class RuntimeSourceElement(override val javaElement: ReflectJavaElement) : JavaSourceElement
|
private class RuntimeSourceElement(override val javaElement: ReflectJavaElement) : JavaSourceElement {
|
||||||
|
override fun toString() = javaClass.name + ": " + javaElement.toString()
|
||||||
|
}
|
||||||
|
|
||||||
override fun source(javaElement: JavaElement) = RuntimeSourceElement(javaElement as ReflectJavaElement)
|
override fun source(javaElement: JavaElement) = RuntimeSourceElement(javaElement as ReflectJavaElement)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user