Add the ability to get containing source file from SourceElement

This commit is contained in:
Zalim Bashorov
2015-09-30 16:28:56 +03:00
parent c7e5eb9ab8
commit 94b110936e
7 changed files with 64 additions and 1 deletions
@@ -17,7 +17,9 @@
package org.jetbrains.kotlin.load.kotlin
import org.jetbrains.kotlin.descriptors.SourceElement
import org.jetbrains.kotlin.descriptors.SourceFile
public class KotlinJvmBinarySourceElement(public val binaryClass: KotlinJvmBinaryClass) : SourceElement {
override fun toString() = javaClass.name + ": " + binaryClass.toString()
override fun getContainingFile(): SourceFile = SourceFile.NO_SOURCE_FILE
}