Minor, make SerializedResourcePaths an interface

This commit is contained in:
Alexander Udalov
2015-12-23 19:05:12 +03:00
parent 75f046fa81
commit 07a23cab10
3 changed files with 13 additions and 13 deletions
@@ -22,8 +22,8 @@ import org.jetbrains.kotlin.name.FqName
import org.jetbrains.kotlin.name.Name
import org.jetbrains.kotlin.serialization.SerializedResourcePaths
public object KotlinJavascriptSerializedResourcePaths : SerializedResourcePaths() {
public override val extensionRegistry: ExtensionRegistryLite = ExtensionRegistryLite.newInstance()
object KotlinJavascriptSerializedResourcePaths : SerializedResourcePaths {
override val extensionRegistry: ExtensionRegistryLite = ExtensionRegistryLite.newInstance()
init {
JsProtoBuf.registerAllExtensions(extensionRegistry)
@@ -32,7 +32,7 @@ public object KotlinJavascriptSerializedResourcePaths : SerializedResourcePaths(
private val CLASSES_FILE_EXTENSION = "kotlin_classes"
private val STRING_TABLE_FILE_EXTENSION = "kotlin_string_table"
public fun getClassesInPackageFilePath(fqName: FqName): String =
fun getClassesInPackageFilePath(fqName: FqName): String =
fqName.toPath().withSepIfNotEmpty() + shortName(fqName) + "." + CLASSES_FILE_EXTENSION