Remove SerializedResourcePaths and BuiltInsSerializedResourcePaths

Most of members now only make sense for JS, move the rest to
BuiltInSerializerProtocol
This commit is contained in:
Alexander Udalov
2016-02-17 15:37:14 +03:00
committed by Alexander Udalov
parent 4bacabe354
commit f82ec6711d
16 changed files with 38 additions and 122 deletions
@@ -1,31 +0,0 @@
/*
* Copyright 2010-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.kotlin.serialization
import com.google.protobuf.ExtensionRegistryLite
import org.jetbrains.kotlin.name.ClassId
import org.jetbrains.kotlin.name.FqName
interface SerializedResourcePaths {
val extensionRegistry: ExtensionRegistryLite
fun getClassMetadataPath(classId: ClassId): String
fun getPackageFilePath(fqName: FqName): String
fun getStringTableFilePath(fqName: FqName): String
}
@@ -16,9 +16,11 @@
package org.jetbrains.kotlin.serialization;
import com.google.protobuf.ExtensionRegistryLite
import com.google.protobuf.GeneratedMessageLite.GeneratedExtension
open class SerializerExtensionProtocol(
val extensionRegistry: ExtensionRegistryLite,
val constructorAnnotation: GeneratedExtension<ProtoBuf.Constructor, List<ProtoBuf.Annotation>>,
val classAnnotation: GeneratedExtension<ProtoBuf.Class, List<ProtoBuf.Annotation>>,
val functionAnnotation: GeneratedExtension<ProtoBuf.Function, List<ProtoBuf.Annotation>>,