/* * 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.js; import "core/deserialization/src/descriptors.proto"; option java_outer_classname = "JsProtoBuf"; option optimize_for = LITE_RUNTIME; extend Class { repeated Annotation class_annotation = 130; } extend Constructor { repeated Annotation constructor_annotation = 130; } extend Function { repeated Annotation function_annotation = 130; } extend Property { repeated Annotation property_annotation = 130; optional Annotation.Argument.Value compile_time_value = 131; } extend EnumEntry { repeated Annotation enum_entry_annotation = 130; } extend ValueParameter { repeated Annotation parameter_annotation = 130; } extend Type { repeated Annotation type_annotation = 130; } extend TypeParameter { repeated Annotation type_parameter_annotation = 130; } message Classes { // id in StringTable repeated int32 class_name = 1 [packed = true]; } message Library { message FileEntry { required string path = 1; required bytes content = 2; } enum Kind { PLAIN = 1; AMD = 2; COMMON_JS = 3; UMD = 4; } repeated FileEntry entry = 1; optional Kind kind = 2 [default = PLAIN]; repeated string imported_module = 3; }