Rework nullability in IR
This commit is contained in:
@@ -80,7 +80,7 @@ message Actual {
|
||||
// Note: IrTypeArgument [63..2 - IrType index | 1..0 - Variance]
|
||||
// If x...xxx00 -> *
|
||||
|
||||
message IrSimpleType {
|
||||
message IrSimpleTypeLegacy {
|
||||
repeated IrConstructorCall annotation = 1;
|
||||
required int64 classifier = 2;
|
||||
required bool has_question_mark = 3;
|
||||
@@ -88,6 +88,20 @@ message IrSimpleType {
|
||||
optional IrTypeAbbreviation abbreviation = 5;
|
||||
}
|
||||
|
||||
enum IrSimpleTypeNullability {
|
||||
MARKED_NULLABLE = 0;
|
||||
NOT_SPECIFIED = 1;
|
||||
DEFINITELY_NOT_NULL = 2;
|
||||
}
|
||||
|
||||
message IrSimpleType {
|
||||
repeated IrConstructorCall annotation = 1;
|
||||
required int64 classifier = 2;
|
||||
optional IrSimpleTypeNullability nullability = 3 [default=NOT_SPECIFIED];
|
||||
repeated int64 argument = 4 [packed=true]; // 0 - STAR, otherwise [63..2 - IrType index | 1..0 - Variance]
|
||||
optional IrTypeAbbreviation abbreviation = 5;
|
||||
}
|
||||
|
||||
message IrTypeAbbreviation {
|
||||
repeated IrConstructorCall annotation = 1;
|
||||
required int64 type_alias = 2;
|
||||
@@ -110,10 +124,11 @@ message IrErrorType {
|
||||
|
||||
message IrType {
|
||||
oneof kind {
|
||||
IrSimpleType simple = 1;
|
||||
IrSimpleTypeLegacy legacySimple = 1;
|
||||
IrDynamicType dynamic = 2;
|
||||
IrErrorType error = 3;
|
||||
IrDefinitelyNotNullType dnn = 4;
|
||||
IrSimpleType simple = 5;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+28
-3
@@ -50,7 +50,9 @@ import org.jetbrains.kotlin.backend.common.serialization.proto.IrInlineClassRepr
|
||||
import org.jetbrains.kotlin.backend.common.serialization.proto.IrLocalDelegatedProperty as ProtoLocalDelegatedProperty
|
||||
import org.jetbrains.kotlin.backend.common.serialization.proto.IrMultiFieldValueClassRepresentation as ProtoIrMultiFieldValueClassRepresentation
|
||||
import org.jetbrains.kotlin.backend.common.serialization.proto.IrProperty as ProtoProperty
|
||||
import org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeNullability as ProtoSimpleTypeNullablity
|
||||
import org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType as ProtoSimpleType
|
||||
import org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy as ProtoSimpleTypeLegacy
|
||||
import org.jetbrains.kotlin.backend.common.serialization.proto.IrStatement as ProtoStatement
|
||||
import org.jetbrains.kotlin.backend.common.serialization.proto.IrType as ProtoType
|
||||
import org.jetbrains.kotlin.backend.common.serialization.proto.IrTypeAbbreviation as ProtoTypeAbbreviation
|
||||
@@ -110,6 +112,12 @@ class IrDeclarationDeserializer(
|
||||
}
|
||||
}
|
||||
|
||||
private fun deserializeSimpleTypeNullability(proto: ProtoSimpleTypeNullablity) = when (proto) {
|
||||
ProtoSimpleTypeNullablity.MARKED_NULLABLE -> SimpleTypeNullability.MARKED_NULLABLE
|
||||
ProtoSimpleTypeNullablity.NOT_SPECIFIED -> SimpleTypeNullability.NOT_SPECIFIED
|
||||
ProtoSimpleTypeNullablity.DEFINITELY_NOT_NULL -> SimpleTypeNullability.DEFINITELY_NOT_NULL
|
||||
}
|
||||
|
||||
private fun deserializeSimpleType(proto: ProtoSimpleType): IrSimpleType {
|
||||
val symbol = checkSymbolType<IrClassifierSymbol>(deserializeIrSymbolAndRemap(proto.classifier))
|
||||
|
||||
@@ -119,7 +127,23 @@ class IrDeclarationDeserializer(
|
||||
return IrSimpleTypeImpl(
|
||||
null,
|
||||
symbol,
|
||||
proto.hasQuestionMark,
|
||||
deserializeSimpleTypeNullability(proto.nullability),
|
||||
arguments,
|
||||
annotations,
|
||||
if (proto.hasAbbreviation()) deserializeTypeAbbreviation(proto.abbreviation) else null
|
||||
)
|
||||
}
|
||||
|
||||
private fun deserializeLegacySimpleType(proto: ProtoSimpleTypeLegacy): IrSimpleType {
|
||||
val symbol = checkSymbolType<IrClassifierSymbol>(deserializeIrSymbolAndRemap(proto.classifier))
|
||||
|
||||
val arguments = proto.argumentList.map { deserializeIrTypeArgument(it) }
|
||||
val annotations = deserializeAnnotations(proto.annotationList)
|
||||
|
||||
return IrSimpleTypeImpl(
|
||||
null,
|
||||
symbol,
|
||||
SimpleTypeNullability.fromHasQuestionMark(proto.hasQuestionMark),
|
||||
arguments,
|
||||
annotations,
|
||||
if (proto.hasAbbreviation()) deserializeTypeAbbreviation(proto.abbreviation) else null
|
||||
@@ -145,16 +169,17 @@ class IrDeclarationDeserializer(
|
||||
return IrErrorTypeImpl(null, annotations, Variance.INVARIANT)
|
||||
}
|
||||
|
||||
private fun deserializeDefinitelyNotNullType(proto: ProtoDefinitelyNotNullType): IrDefinitelyNotNullType {
|
||||
private fun deserializeDefinitelyNotNullType(proto: ProtoDefinitelyNotNullType): IrSimpleType {
|
||||
assert(proto.typesCount == 1) { "Only DefinitelyNotNull type is now supported" }
|
||||
// TODO support general case of intersection type
|
||||
return IrDefinitelyNotNullTypeImpl(null, deserializeIrType(proto.typesList[0]))
|
||||
return deserializeIrType(proto.typesList[0]).makeNotNull() as IrSimpleType
|
||||
}
|
||||
|
||||
private fun deserializeIrTypeData(proto: ProtoType): IrType {
|
||||
return when (proto.kindCase) {
|
||||
DNN -> deserializeDefinitelyNotNullType(proto.dnn)
|
||||
SIMPLE -> deserializeSimpleType(proto.simple)
|
||||
LEGACYSIMPLE -> deserializeLegacySimpleType(proto.legacySimple)
|
||||
DYNAMIC -> deserializeDynamicType(proto.dynamic)
|
||||
ERROR -> deserializeErrorType(proto.error)
|
||||
else -> error("Unexpected IrType kind: ${proto.kindCase}")
|
||||
|
||||
+13
-14
@@ -6,6 +6,7 @@
|
||||
package org.jetbrains.kotlin.backend.common.serialization
|
||||
|
||||
import org.jetbrains.kotlin.backend.common.serialization.encodings.*
|
||||
import org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeNullability
|
||||
import org.jetbrains.kotlin.descriptors.*
|
||||
import org.jetbrains.kotlin.ir.IrElement
|
||||
import org.jetbrains.kotlin.ir.IrFileEntry
|
||||
@@ -52,7 +53,6 @@ import org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall
|
||||
import org.jetbrains.kotlin.backend.common.serialization.proto.IrContinue as ProtoContinue
|
||||
import org.jetbrains.kotlin.backend.common.serialization.proto.IrDeclaration as ProtoDeclaration
|
||||
import org.jetbrains.kotlin.backend.common.serialization.proto.IrDeclarationBase as ProtoDeclarationBase
|
||||
import org.jetbrains.kotlin.backend.common.serialization.proto.IrDefinitelyNotNullType as ProtoDefinitelyNotNullType
|
||||
import org.jetbrains.kotlin.backend.common.serialization.proto.IrDelegatingConstructorCall as ProtoDelegatingConstructorCall
|
||||
import org.jetbrains.kotlin.backend.common.serialization.proto.IrDoWhile as ProtoDoWhile
|
||||
import org.jetbrains.kotlin.backend.common.serialization.proto.IrDynamicMemberExpression as ProtoDynamicMemberExpression
|
||||
@@ -378,11 +378,19 @@ open class IrFileSerializer(
|
||||
}
|
||||
}
|
||||
|
||||
private fun serializeNullability(nullability: SimpleTypeNullability) = when (nullability) {
|
||||
SimpleTypeNullability.MARKED_NULLABLE -> IrSimpleTypeNullability.MARKED_NULLABLE
|
||||
SimpleTypeNullability.NOT_SPECIFIED -> IrSimpleTypeNullability.NOT_SPECIFIED
|
||||
SimpleTypeNullability.DEFINITELY_NOT_NULL -> IrSimpleTypeNullability.DEFINITELY_NOT_NULL
|
||||
}
|
||||
|
||||
private fun serializeSimpleType(type: IrSimpleType): ProtoSimpleType {
|
||||
val proto = ProtoSimpleType.newBuilder()
|
||||
.addAllAnnotation(serializeAnnotations(type.annotations))
|
||||
.setClassifier(serializeIrSymbol(type.classifier))
|
||||
.setHasQuestionMark(type.hasQuestionMark)
|
||||
if (type.nullability != SimpleTypeNullability.NOT_SPECIFIED) {
|
||||
proto.setNullability(serializeNullability(type.nullability))
|
||||
}
|
||||
type.abbreviation?.let { ta ->
|
||||
proto.setAbbreviation(serializeIrTypeAbbreviation(ta))
|
||||
}
|
||||
@@ -411,17 +419,10 @@ open class IrFileSerializer(
|
||||
.addAllAnnotation(serializeAnnotations(type.annotations))
|
||||
.build()
|
||||
|
||||
private fun serializeDefinitelyNotNullType(type: IrDefinitelyNotNullType): ProtoDefinitelyNotNullType =
|
||||
ProtoDefinitelyNotNullType.newBuilder()
|
||||
.addTypes(serializeIrType(type.original))
|
||||
// .addTypes(serializeIrType(kotlin.Any))
|
||||
.build()
|
||||
|
||||
private fun serializeIrTypeData(type: IrType): ProtoType {
|
||||
val proto = ProtoType.newBuilder()
|
||||
when (type) {
|
||||
is IrDefinitelyNotNullType ->
|
||||
proto.dnn = serializeDefinitelyNotNullType(type)
|
||||
is IrSimpleType ->
|
||||
proto.simple = serializeSimpleType(type)
|
||||
is IrDynamicType ->
|
||||
@@ -437,7 +438,6 @@ open class IrFileSerializer(
|
||||
SIMPLE,
|
||||
DYNAMIC,
|
||||
ERROR,
|
||||
DEFINITELY_NOT_NULL
|
||||
}
|
||||
|
||||
enum class IrTypeArgumentKind {
|
||||
@@ -449,7 +449,7 @@ open class IrFileSerializer(
|
||||
data class IrTypeKey(
|
||||
val kind: IrTypeKind,
|
||||
val classifier: IrClassifierSymbol?,
|
||||
val hasQuestionMark: Boolean?,
|
||||
val nullability: SimpleTypeNullability?,
|
||||
val arguments: List<IrTypeArgumentKey>?,
|
||||
val annotations: List<IrConstructorCall>,
|
||||
val abbreviation: IrTypeAbbreviation?
|
||||
@@ -463,17 +463,16 @@ open class IrFileSerializer(
|
||||
|
||||
private val IrType.toIrTypeKey: IrTypeKey
|
||||
get() {
|
||||
var type = this
|
||||
val type = this
|
||||
return IrTypeKey(
|
||||
kind = when (this) {
|
||||
is IrDefinitelyNotNullType -> IrTypeKind.DEFINITELY_NOT_NULL.also { type = original }
|
||||
is IrSimpleType -> IrTypeKind.SIMPLE
|
||||
is IrDynamicType -> IrTypeKind.DYNAMIC
|
||||
is IrErrorType -> IrTypeKind.ERROR
|
||||
else -> error("Unexpected IrType kind: $this")
|
||||
},
|
||||
classifier = type.classifierOrNull,
|
||||
hasQuestionMark = (type as? IrSimpleType)?.hasQuestionMark,
|
||||
nullability = (type as? IrSimpleType)?.nullability,
|
||||
arguments = (type as? IrSimpleType)?.arguments?.map { it.toIrTypeArgumentKey },
|
||||
annotations = type.annotations,
|
||||
abbreviation = (type as? IrSimpleType)?.abbreviation
|
||||
|
||||
+2
-5
@@ -186,15 +186,12 @@ abstract class IrMangleComputer(protected val builder: StringBuilder, private va
|
||||
}
|
||||
}
|
||||
|
||||
if (type.hasQuestionMark) tBuilder.appendSignature(MangleConstant.Q_MARK)
|
||||
//TODO
|
||||
if (type.isMarkedNullable()) tBuilder.appendSignature(MangleConstant.Q_MARK)
|
||||
|
||||
mangleTypePlatformSpecific(type, tBuilder)
|
||||
}
|
||||
is IrDynamicType -> tBuilder.appendSignature(MangleConstant.DYNAMIC_MARK)
|
||||
is IrDefinitelyNotNullType -> {
|
||||
// TODO mangle DNN type differently from original simple type?
|
||||
mangleType(tBuilder, type.original)
|
||||
}
|
||||
is IrErrorType -> tBuilder.appendSignature(MangleConstant.ERROR_MARK)
|
||||
else -> error("Unexpected type $type")
|
||||
}
|
||||
|
||||
+38
-36
@@ -67,8 +67,15 @@ public final class IrSimpleType extends
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
bitField0_ |= 0x00000002;
|
||||
hasQuestionMark_ = input.readBool();
|
||||
int rawValue = input.readEnum();
|
||||
org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeNullability value = org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeNullability.valueOf(rawValue);
|
||||
if (value == null) {
|
||||
unknownFieldsCodedOutput.writeRawVarint32(tag);
|
||||
unknownFieldsCodedOutput.writeRawVarint32(rawValue);
|
||||
} else {
|
||||
bitField0_ |= 0x00000002;
|
||||
nullability_ = value;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
@@ -195,19 +202,19 @@ public final class IrSimpleType extends
|
||||
return classifier_;
|
||||
}
|
||||
|
||||
public static final int HAS_QUESTION_MARK_FIELD_NUMBER = 3;
|
||||
private boolean hasQuestionMark_;
|
||||
public static final int NULLABILITY_FIELD_NUMBER = 3;
|
||||
private org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeNullability nullability_;
|
||||
/**
|
||||
* <code>required bool has_question_mark = 3;</code>
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeNullability nullability = 3 [default = NOT_SPECIFIED];</code>
|
||||
*/
|
||||
public boolean hasHasQuestionMark() {
|
||||
public boolean hasNullability() {
|
||||
return ((bitField0_ & 0x00000002) == 0x00000002);
|
||||
}
|
||||
/**
|
||||
* <code>required bool has_question_mark = 3;</code>
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeNullability nullability = 3 [default = NOT_SPECIFIED];</code>
|
||||
*/
|
||||
public boolean getHasQuestionMark() {
|
||||
return hasQuestionMark_;
|
||||
public org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeNullability getNullability() {
|
||||
return nullability_;
|
||||
}
|
||||
|
||||
public static final int ARGUMENT_FIELD_NUMBER = 4;
|
||||
@@ -263,7 +270,7 @@ public final class IrSimpleType extends
|
||||
private void initFields() {
|
||||
annotation_ = java.util.Collections.emptyList();
|
||||
classifier_ = 0L;
|
||||
hasQuestionMark_ = false;
|
||||
nullability_ = org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeNullability.NOT_SPECIFIED;
|
||||
argument_ = java.util.Collections.emptyList();
|
||||
abbreviation_ = org.jetbrains.kotlin.backend.common.serialization.proto.IrTypeAbbreviation.getDefaultInstance();
|
||||
}
|
||||
@@ -277,10 +284,6 @@ public final class IrSimpleType extends
|
||||
memoizedIsInitialized = 0;
|
||||
return false;
|
||||
}
|
||||
if (!hasHasQuestionMark()) {
|
||||
memoizedIsInitialized = 0;
|
||||
return false;
|
||||
}
|
||||
for (int i = 0; i < getAnnotationCount(); i++) {
|
||||
if (!getAnnotation(i).isInitialized()) {
|
||||
memoizedIsInitialized = 0;
|
||||
@@ -307,7 +310,7 @@ public final class IrSimpleType extends
|
||||
output.writeInt64(2, classifier_);
|
||||
}
|
||||
if (((bitField0_ & 0x00000002) == 0x00000002)) {
|
||||
output.writeBool(3, hasQuestionMark_);
|
||||
output.writeEnum(3, nullability_.getNumber());
|
||||
}
|
||||
if (getArgumentList().size() > 0) {
|
||||
output.writeRawVarint32(34);
|
||||
@@ -338,7 +341,7 @@ public final class IrSimpleType extends
|
||||
}
|
||||
if (((bitField0_ & 0x00000002) == 0x00000002)) {
|
||||
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
||||
.computeBoolSize(3, hasQuestionMark_);
|
||||
.computeEnumSize(3, nullability_.getNumber());
|
||||
}
|
||||
{
|
||||
int dataSize = 0;
|
||||
@@ -456,7 +459,7 @@ public final class IrSimpleType extends
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
classifier_ = 0L;
|
||||
bitField0_ = (bitField0_ & ~0x00000002);
|
||||
hasQuestionMark_ = false;
|
||||
nullability_ = org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeNullability.NOT_SPECIFIED;
|
||||
bitField0_ = (bitField0_ & ~0x00000004);
|
||||
argument_ = java.util.Collections.emptyList();
|
||||
bitField0_ = (bitField0_ & ~0x00000008);
|
||||
@@ -497,7 +500,7 @@ public final class IrSimpleType extends
|
||||
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
|
||||
to_bitField0_ |= 0x00000002;
|
||||
}
|
||||
result.hasQuestionMark_ = hasQuestionMark_;
|
||||
result.nullability_ = nullability_;
|
||||
if (((bitField0_ & 0x00000008) == 0x00000008)) {
|
||||
argument_ = java.util.Collections.unmodifiableList(argument_);
|
||||
bitField0_ = (bitField0_ & ~0x00000008);
|
||||
@@ -526,8 +529,8 @@ public final class IrSimpleType extends
|
||||
if (other.hasClassifier()) {
|
||||
setClassifier(other.getClassifier());
|
||||
}
|
||||
if (other.hasHasQuestionMark()) {
|
||||
setHasQuestionMark(other.getHasQuestionMark());
|
||||
if (other.hasNullability()) {
|
||||
setNullability(other.getNullability());
|
||||
}
|
||||
if (!other.argument_.isEmpty()) {
|
||||
if (argument_.isEmpty()) {
|
||||
@@ -552,10 +555,6 @@ public final class IrSimpleType extends
|
||||
|
||||
return false;
|
||||
}
|
||||
if (!hasHasQuestionMark()) {
|
||||
|
||||
return false;
|
||||
}
|
||||
for (int i = 0; i < getAnnotationCount(); i++) {
|
||||
if (!getAnnotation(i).isInitialized()) {
|
||||
|
||||
@@ -747,34 +746,37 @@ public final class IrSimpleType extends
|
||||
return this;
|
||||
}
|
||||
|
||||
private boolean hasQuestionMark_ ;
|
||||
private org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeNullability nullability_ = org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeNullability.NOT_SPECIFIED;
|
||||
/**
|
||||
* <code>required bool has_question_mark = 3;</code>
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeNullability nullability = 3 [default = NOT_SPECIFIED];</code>
|
||||
*/
|
||||
public boolean hasHasQuestionMark() {
|
||||
public boolean hasNullability() {
|
||||
return ((bitField0_ & 0x00000004) == 0x00000004);
|
||||
}
|
||||
/**
|
||||
* <code>required bool has_question_mark = 3;</code>
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeNullability nullability = 3 [default = NOT_SPECIFIED];</code>
|
||||
*/
|
||||
public boolean getHasQuestionMark() {
|
||||
return hasQuestionMark_;
|
||||
public org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeNullability getNullability() {
|
||||
return nullability_;
|
||||
}
|
||||
/**
|
||||
* <code>required bool has_question_mark = 3;</code>
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeNullability nullability = 3 [default = NOT_SPECIFIED];</code>
|
||||
*/
|
||||
public Builder setHasQuestionMark(boolean value) {
|
||||
public Builder setNullability(org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeNullability value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
bitField0_ |= 0x00000004;
|
||||
hasQuestionMark_ = value;
|
||||
nullability_ = value;
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>required bool has_question_mark = 3;</code>
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeNullability nullability = 3 [default = NOT_SPECIFIED];</code>
|
||||
*/
|
||||
public Builder clearHasQuestionMark() {
|
||||
public Builder clearNullability() {
|
||||
bitField0_ = (bitField0_ & ~0x00000004);
|
||||
hasQuestionMark_ = false;
|
||||
nullability_ = org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeNullability.NOT_SPECIFIED;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
+945
@@ -0,0 +1,945 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: compiler/ir/serialization.common/src/KotlinIr.proto
|
||||
|
||||
package org.jetbrains.kotlin.backend.common.serialization.proto;
|
||||
|
||||
/**
|
||||
* Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy}
|
||||
*/
|
||||
public final class IrSimpleTypeLegacy extends
|
||||
org.jetbrains.kotlin.protobuf.GeneratedMessageLite implements
|
||||
// @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy)
|
||||
IrSimpleTypeLegacyOrBuilder {
|
||||
// Use IrSimpleTypeLegacy.newBuilder() to construct.
|
||||
private IrSimpleTypeLegacy(org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder builder) {
|
||||
super(builder);
|
||||
this.unknownFields = builder.getUnknownFields();
|
||||
}
|
||||
private IrSimpleTypeLegacy(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.ByteString.EMPTY;}
|
||||
|
||||
private static final IrSimpleTypeLegacy defaultInstance;
|
||||
public static IrSimpleTypeLegacy getDefaultInstance() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
public IrSimpleTypeLegacy getDefaultInstanceForType() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
private final org.jetbrains.kotlin.protobuf.ByteString unknownFields;
|
||||
private IrSimpleTypeLegacy(
|
||||
org.jetbrains.kotlin.protobuf.CodedInputStream input,
|
||||
org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
|
||||
initFields();
|
||||
int mutable_bitField0_ = 0;
|
||||
org.jetbrains.kotlin.protobuf.ByteString.Output unknownFieldsOutput =
|
||||
org.jetbrains.kotlin.protobuf.ByteString.newOutput();
|
||||
org.jetbrains.kotlin.protobuf.CodedOutputStream unknownFieldsCodedOutput =
|
||||
org.jetbrains.kotlin.protobuf.CodedOutputStream.newInstance(
|
||||
unknownFieldsOutput, 1);
|
||||
try {
|
||||
boolean done = false;
|
||||
while (!done) {
|
||||
int tag = input.readTag();
|
||||
switch (tag) {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
default: {
|
||||
if (!parseUnknownField(input, unknownFieldsCodedOutput,
|
||||
extensionRegistry, tag)) {
|
||||
done = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 10: {
|
||||
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
|
||||
annotation_ = new java.util.ArrayList<org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall>();
|
||||
mutable_bitField0_ |= 0x00000001;
|
||||
}
|
||||
annotation_.add(input.readMessage(org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.PARSER, extensionRegistry));
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
bitField0_ |= 0x00000001;
|
||||
classifier_ = input.readInt64();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
bitField0_ |= 0x00000002;
|
||||
hasQuestionMark_ = input.readBool();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
|
||||
argument_ = new java.util.ArrayList<java.lang.Long>();
|
||||
mutable_bitField0_ |= 0x00000008;
|
||||
}
|
||||
argument_.add(input.readInt64());
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
int length = input.readRawVarint32();
|
||||
int limit = input.pushLimit(length);
|
||||
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) {
|
||||
argument_ = new java.util.ArrayList<java.lang.Long>();
|
||||
mutable_bitField0_ |= 0x00000008;
|
||||
}
|
||||
while (input.getBytesUntilLimit() > 0) {
|
||||
argument_.add(input.readInt64());
|
||||
}
|
||||
input.popLimit(limit);
|
||||
break;
|
||||
}
|
||||
case 42: {
|
||||
org.jetbrains.kotlin.backend.common.serialization.proto.IrTypeAbbreviation.Builder subBuilder = null;
|
||||
if (((bitField0_ & 0x00000004) == 0x00000004)) {
|
||||
subBuilder = abbreviation_.toBuilder();
|
||||
}
|
||||
abbreviation_ = input.readMessage(org.jetbrains.kotlin.backend.common.serialization.proto.IrTypeAbbreviation.PARSER, extensionRegistry);
|
||||
if (subBuilder != null) {
|
||||
subBuilder.mergeFrom(abbreviation_);
|
||||
abbreviation_ = subBuilder.buildPartial();
|
||||
}
|
||||
bitField0_ |= 0x00000004;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.setUnfinishedMessage(this);
|
||||
} catch (java.io.IOException e) {
|
||||
throw new org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException(
|
||||
e.getMessage()).setUnfinishedMessage(this);
|
||||
} finally {
|
||||
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
|
||||
annotation_ = java.util.Collections.unmodifiableList(annotation_);
|
||||
}
|
||||
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
|
||||
argument_ = java.util.Collections.unmodifiableList(argument_);
|
||||
}
|
||||
try {
|
||||
unknownFieldsCodedOutput.flush();
|
||||
} catch (java.io.IOException e) {
|
||||
// Should not happen
|
||||
} finally {
|
||||
unknownFields = unknownFieldsOutput.toByteString();
|
||||
}
|
||||
makeExtensionsImmutable();
|
||||
}
|
||||
}
|
||||
public static org.jetbrains.kotlin.protobuf.Parser<IrSimpleTypeLegacy> PARSER =
|
||||
new org.jetbrains.kotlin.protobuf.AbstractParser<IrSimpleTypeLegacy>() {
|
||||
public IrSimpleTypeLegacy parsePartialFrom(
|
||||
org.jetbrains.kotlin.protobuf.CodedInputStream input,
|
||||
org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
|
||||
return new IrSimpleTypeLegacy(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
@java.lang.Override
|
||||
public org.jetbrains.kotlin.protobuf.Parser<IrSimpleTypeLegacy> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
private int bitField0_;
|
||||
public static final int ANNOTATION_FIELD_NUMBER = 1;
|
||||
private java.util.List<org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall> annotation_;
|
||||
/**
|
||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 1;</code>
|
||||
*/
|
||||
public java.util.List<org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall> getAnnotationList() {
|
||||
return annotation_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 1;</code>
|
||||
*/
|
||||
public java.util.List<? extends org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCallOrBuilder>
|
||||
getAnnotationOrBuilderList() {
|
||||
return annotation_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 1;</code>
|
||||
*/
|
||||
public int getAnnotationCount() {
|
||||
return annotation_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 1;</code>
|
||||
*/
|
||||
public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index) {
|
||||
return annotation_.get(index);
|
||||
}
|
||||
/**
|
||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 1;</code>
|
||||
*/
|
||||
public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCallOrBuilder getAnnotationOrBuilder(
|
||||
int index) {
|
||||
return annotation_.get(index);
|
||||
}
|
||||
|
||||
public static final int CLASSIFIER_FIELD_NUMBER = 2;
|
||||
private long classifier_;
|
||||
/**
|
||||
* <code>required int64 classifier = 2;</code>
|
||||
*/
|
||||
public boolean hasClassifier() {
|
||||
return ((bitField0_ & 0x00000001) == 0x00000001);
|
||||
}
|
||||
/**
|
||||
* <code>required int64 classifier = 2;</code>
|
||||
*/
|
||||
public long getClassifier() {
|
||||
return classifier_;
|
||||
}
|
||||
|
||||
public static final int HAS_QUESTION_MARK_FIELD_NUMBER = 3;
|
||||
private boolean hasQuestionMark_;
|
||||
/**
|
||||
* <code>required bool has_question_mark = 3;</code>
|
||||
*/
|
||||
public boolean hasHasQuestionMark() {
|
||||
return ((bitField0_ & 0x00000002) == 0x00000002);
|
||||
}
|
||||
/**
|
||||
* <code>required bool has_question_mark = 3;</code>
|
||||
*/
|
||||
public boolean getHasQuestionMark() {
|
||||
return hasQuestionMark_;
|
||||
}
|
||||
|
||||
public static final int ARGUMENT_FIELD_NUMBER = 4;
|
||||
private java.util.List<java.lang.Long> argument_;
|
||||
/**
|
||||
* <code>repeated int64 argument = 4 [packed = true];</code>
|
||||
*
|
||||
* <pre>
|
||||
* 0 - STAR, otherwise [63..2 - IrType index | 1..0 - Variance]
|
||||
* </pre>
|
||||
*/
|
||||
public java.util.List<java.lang.Long>
|
||||
getArgumentList() {
|
||||
return argument_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated int64 argument = 4 [packed = true];</code>
|
||||
*
|
||||
* <pre>
|
||||
* 0 - STAR, otherwise [63..2 - IrType index | 1..0 - Variance]
|
||||
* </pre>
|
||||
*/
|
||||
public int getArgumentCount() {
|
||||
return argument_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated int64 argument = 4 [packed = true];</code>
|
||||
*
|
||||
* <pre>
|
||||
* 0 - STAR, otherwise [63..2 - IrType index | 1..0 - Variance]
|
||||
* </pre>
|
||||
*/
|
||||
public long getArgument(int index) {
|
||||
return argument_.get(index);
|
||||
}
|
||||
private int argumentMemoizedSerializedSize = -1;
|
||||
|
||||
public static final int ABBREVIATION_FIELD_NUMBER = 5;
|
||||
private org.jetbrains.kotlin.backend.common.serialization.proto.IrTypeAbbreviation abbreviation_;
|
||||
/**
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrTypeAbbreviation abbreviation = 5;</code>
|
||||
*/
|
||||
public boolean hasAbbreviation() {
|
||||
return ((bitField0_ & 0x00000004) == 0x00000004);
|
||||
}
|
||||
/**
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrTypeAbbreviation abbreviation = 5;</code>
|
||||
*/
|
||||
public org.jetbrains.kotlin.backend.common.serialization.proto.IrTypeAbbreviation getAbbreviation() {
|
||||
return abbreviation_;
|
||||
}
|
||||
|
||||
private void initFields() {
|
||||
annotation_ = java.util.Collections.emptyList();
|
||||
classifier_ = 0L;
|
||||
hasQuestionMark_ = false;
|
||||
argument_ = java.util.Collections.emptyList();
|
||||
abbreviation_ = org.jetbrains.kotlin.backend.common.serialization.proto.IrTypeAbbreviation.getDefaultInstance();
|
||||
}
|
||||
private byte memoizedIsInitialized = -1;
|
||||
public final boolean isInitialized() {
|
||||
byte isInitialized = memoizedIsInitialized;
|
||||
if (isInitialized == 1) return true;
|
||||
if (isInitialized == 0) return false;
|
||||
|
||||
if (!hasClassifier()) {
|
||||
memoizedIsInitialized = 0;
|
||||
return false;
|
||||
}
|
||||
if (!hasHasQuestionMark()) {
|
||||
memoizedIsInitialized = 0;
|
||||
return false;
|
||||
}
|
||||
for (int i = 0; i < getAnnotationCount(); i++) {
|
||||
if (!getAnnotation(i).isInitialized()) {
|
||||
memoizedIsInitialized = 0;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (hasAbbreviation()) {
|
||||
if (!getAbbreviation().isInitialized()) {
|
||||
memoizedIsInitialized = 0;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
memoizedIsInitialized = 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
getSerializedSize();
|
||||
for (int i = 0; i < annotation_.size(); i++) {
|
||||
output.writeMessage(1, annotation_.get(i));
|
||||
}
|
||||
if (((bitField0_ & 0x00000001) == 0x00000001)) {
|
||||
output.writeInt64(2, classifier_);
|
||||
}
|
||||
if (((bitField0_ & 0x00000002) == 0x00000002)) {
|
||||
output.writeBool(3, hasQuestionMark_);
|
||||
}
|
||||
if (getArgumentList().size() > 0) {
|
||||
output.writeRawVarint32(34);
|
||||
output.writeRawVarint32(argumentMemoizedSerializedSize);
|
||||
}
|
||||
for (int i = 0; i < argument_.size(); i++) {
|
||||
output.writeInt64NoTag(argument_.get(i));
|
||||
}
|
||||
if (((bitField0_ & 0x00000004) == 0x00000004)) {
|
||||
output.writeMessage(5, abbreviation_);
|
||||
}
|
||||
output.writeRawBytes(unknownFields);
|
||||
}
|
||||
|
||||
private int memoizedSerializedSize = -1;
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSerializedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
for (int i = 0; i < annotation_.size(); i++) {
|
||||
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
||||
.computeMessageSize(1, annotation_.get(i));
|
||||
}
|
||||
if (((bitField0_ & 0x00000001) == 0x00000001)) {
|
||||
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
||||
.computeInt64Size(2, classifier_);
|
||||
}
|
||||
if (((bitField0_ & 0x00000002) == 0x00000002)) {
|
||||
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
||||
.computeBoolSize(3, hasQuestionMark_);
|
||||
}
|
||||
{
|
||||
int dataSize = 0;
|
||||
for (int i = 0; i < argument_.size(); i++) {
|
||||
dataSize += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
||||
.computeInt64SizeNoTag(argument_.get(i));
|
||||
}
|
||||
size += dataSize;
|
||||
if (!getArgumentList().isEmpty()) {
|
||||
size += 1;
|
||||
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
||||
.computeInt32SizeNoTag(dataSize);
|
||||
}
|
||||
argumentMemoizedSerializedSize = dataSize;
|
||||
}
|
||||
if (((bitField0_ & 0x00000004) == 0x00000004)) {
|
||||
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
||||
.computeMessageSize(5, abbreviation_);
|
||||
}
|
||||
size += unknownFields.size();
|
||||
memoizedSerializedSize = size;
|
||||
return size;
|
||||
}
|
||||
|
||||
private static final long serialVersionUID = 0L;
|
||||
@java.lang.Override
|
||||
protected java.lang.Object writeReplace()
|
||||
throws java.io.ObjectStreamException {
|
||||
return super.writeReplace();
|
||||
}
|
||||
|
||||
public static org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy parseFrom(
|
||||
org.jetbrains.kotlin.protobuf.ByteString data)
|
||||
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy parseFrom(
|
||||
org.jetbrains.kotlin.protobuf.ByteString data,
|
||||
org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy parseFrom(byte[] data)
|
||||
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy parseFrom(
|
||||
byte[] data,
|
||||
org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return PARSER.parseFrom(input);
|
||||
}
|
||||
public static org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy parseFrom(
|
||||
java.io.InputStream input,
|
||||
org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return PARSER.parseFrom(input, extensionRegistry);
|
||||
}
|
||||
public static org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return PARSER.parseDelimitedFrom(input);
|
||||
}
|
||||
public static org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy parseDelimitedFrom(
|
||||
java.io.InputStream input,
|
||||
org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return PARSER.parseDelimitedFrom(input, extensionRegistry);
|
||||
}
|
||||
public static org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy parseFrom(
|
||||
org.jetbrains.kotlin.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return PARSER.parseFrom(input);
|
||||
}
|
||||
public static org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy parseFrom(
|
||||
org.jetbrains.kotlin.protobuf.CodedInputStream input,
|
||||
org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return PARSER.parseFrom(input, extensionRegistry);
|
||||
}
|
||||
|
||||
public static Builder newBuilder() { return Builder.create(); }
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder(org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy prototype) {
|
||||
return newBuilder().mergeFrom(prototype);
|
||||
}
|
||||
public Builder toBuilder() { return newBuilder(this); }
|
||||
|
||||
/**
|
||||
* Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder<
|
||||
org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy, Builder>
|
||||
implements
|
||||
// @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy)
|
||||
org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacyOrBuilder {
|
||||
// Construct using org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy.newBuilder()
|
||||
private Builder() {
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
|
||||
private void maybeForceBuilderInitialization() {
|
||||
}
|
||||
private static Builder create() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
annotation_ = java.util.Collections.emptyList();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
classifier_ = 0L;
|
||||
bitField0_ = (bitField0_ & ~0x00000002);
|
||||
hasQuestionMark_ = false;
|
||||
bitField0_ = (bitField0_ & ~0x00000004);
|
||||
argument_ = java.util.Collections.emptyList();
|
||||
bitField0_ = (bitField0_ & ~0x00000008);
|
||||
abbreviation_ = org.jetbrains.kotlin.backend.common.serialization.proto.IrTypeAbbreviation.getDefaultInstance();
|
||||
bitField0_ = (bitField0_ & ~0x00000010);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder clone() {
|
||||
return create().mergeFrom(buildPartial());
|
||||
}
|
||||
|
||||
public org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy getDefaultInstanceForType() {
|
||||
return org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy.getDefaultInstance();
|
||||
}
|
||||
|
||||
public org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy build() {
|
||||
org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy buildPartial() {
|
||||
org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy result = new org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy(this);
|
||||
int from_bitField0_ = bitField0_;
|
||||
int to_bitField0_ = 0;
|
||||
if (((bitField0_ & 0x00000001) == 0x00000001)) {
|
||||
annotation_ = java.util.Collections.unmodifiableList(annotation_);
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
}
|
||||
result.annotation_ = annotation_;
|
||||
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
|
||||
to_bitField0_ |= 0x00000001;
|
||||
}
|
||||
result.classifier_ = classifier_;
|
||||
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
|
||||
to_bitField0_ |= 0x00000002;
|
||||
}
|
||||
result.hasQuestionMark_ = hasQuestionMark_;
|
||||
if (((bitField0_ & 0x00000008) == 0x00000008)) {
|
||||
argument_ = java.util.Collections.unmodifiableList(argument_);
|
||||
bitField0_ = (bitField0_ & ~0x00000008);
|
||||
}
|
||||
result.argument_ = argument_;
|
||||
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
|
||||
to_bitField0_ |= 0x00000004;
|
||||
}
|
||||
result.abbreviation_ = abbreviation_;
|
||||
result.bitField0_ = to_bitField0_;
|
||||
return result;
|
||||
}
|
||||
|
||||
public Builder mergeFrom(org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy other) {
|
||||
if (other == org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy.getDefaultInstance()) return this;
|
||||
if (!other.annotation_.isEmpty()) {
|
||||
if (annotation_.isEmpty()) {
|
||||
annotation_ = other.annotation_;
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
} else {
|
||||
ensureAnnotationIsMutable();
|
||||
annotation_.addAll(other.annotation_);
|
||||
}
|
||||
|
||||
}
|
||||
if (other.hasClassifier()) {
|
||||
setClassifier(other.getClassifier());
|
||||
}
|
||||
if (other.hasHasQuestionMark()) {
|
||||
setHasQuestionMark(other.getHasQuestionMark());
|
||||
}
|
||||
if (!other.argument_.isEmpty()) {
|
||||
if (argument_.isEmpty()) {
|
||||
argument_ = other.argument_;
|
||||
bitField0_ = (bitField0_ & ~0x00000008);
|
||||
} else {
|
||||
ensureArgumentIsMutable();
|
||||
argument_.addAll(other.argument_);
|
||||
}
|
||||
|
||||
}
|
||||
if (other.hasAbbreviation()) {
|
||||
mergeAbbreviation(other.getAbbreviation());
|
||||
}
|
||||
setUnknownFields(
|
||||
getUnknownFields().concat(other.unknownFields));
|
||||
return this;
|
||||
}
|
||||
|
||||
public final boolean isInitialized() {
|
||||
if (!hasClassifier()) {
|
||||
|
||||
return false;
|
||||
}
|
||||
if (!hasHasQuestionMark()) {
|
||||
|
||||
return false;
|
||||
}
|
||||
for (int i = 0; i < getAnnotationCount(); i++) {
|
||||
if (!getAnnotation(i).isInitialized()) {
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (hasAbbreviation()) {
|
||||
if (!getAbbreviation().isInitialized()) {
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public Builder mergeFrom(
|
||||
org.jetbrains.kotlin.protobuf.CodedInputStream input,
|
||||
org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy) e.getUnfinishedMessage();
|
||||
throw e;
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
mergeFrom(parsedMessage);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
private int bitField0_;
|
||||
|
||||
private java.util.List<org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall> annotation_ =
|
||||
java.util.Collections.emptyList();
|
||||
private void ensureAnnotationIsMutable() {
|
||||
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
|
||||
annotation_ = new java.util.ArrayList<org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall>(annotation_);
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 1;</code>
|
||||
*/
|
||||
public java.util.List<org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall> getAnnotationList() {
|
||||
return java.util.Collections.unmodifiableList(annotation_);
|
||||
}
|
||||
/**
|
||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 1;</code>
|
||||
*/
|
||||
public int getAnnotationCount() {
|
||||
return annotation_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 1;</code>
|
||||
*/
|
||||
public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index) {
|
||||
return annotation_.get(index);
|
||||
}
|
||||
/**
|
||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 1;</code>
|
||||
*/
|
||||
public Builder setAnnotation(
|
||||
int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
ensureAnnotationIsMutable();
|
||||
annotation_.set(index, value);
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 1;</code>
|
||||
*/
|
||||
public Builder setAnnotation(
|
||||
int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) {
|
||||
ensureAnnotationIsMutable();
|
||||
annotation_.set(index, builderForValue.build());
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 1;</code>
|
||||
*/
|
||||
public Builder addAnnotation(org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
ensureAnnotationIsMutable();
|
||||
annotation_.add(value);
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 1;</code>
|
||||
*/
|
||||
public Builder addAnnotation(
|
||||
int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
ensureAnnotationIsMutable();
|
||||
annotation_.add(index, value);
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 1;</code>
|
||||
*/
|
||||
public Builder addAnnotation(
|
||||
org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) {
|
||||
ensureAnnotationIsMutable();
|
||||
annotation_.add(builderForValue.build());
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 1;</code>
|
||||
*/
|
||||
public Builder addAnnotation(
|
||||
int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) {
|
||||
ensureAnnotationIsMutable();
|
||||
annotation_.add(index, builderForValue.build());
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 1;</code>
|
||||
*/
|
||||
public Builder addAllAnnotation(
|
||||
java.lang.Iterable<? extends org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall> values) {
|
||||
ensureAnnotationIsMutable();
|
||||
org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll(
|
||||
values, annotation_);
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 1;</code>
|
||||
*/
|
||||
public Builder clearAnnotation() {
|
||||
annotation_ = java.util.Collections.emptyList();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 1;</code>
|
||||
*/
|
||||
public Builder removeAnnotation(int index) {
|
||||
ensureAnnotationIsMutable();
|
||||
annotation_.remove(index);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
private long classifier_ ;
|
||||
/**
|
||||
* <code>required int64 classifier = 2;</code>
|
||||
*/
|
||||
public boolean hasClassifier() {
|
||||
return ((bitField0_ & 0x00000002) == 0x00000002);
|
||||
}
|
||||
/**
|
||||
* <code>required int64 classifier = 2;</code>
|
||||
*/
|
||||
public long getClassifier() {
|
||||
return classifier_;
|
||||
}
|
||||
/**
|
||||
* <code>required int64 classifier = 2;</code>
|
||||
*/
|
||||
public Builder setClassifier(long value) {
|
||||
bitField0_ |= 0x00000002;
|
||||
classifier_ = value;
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>required int64 classifier = 2;</code>
|
||||
*/
|
||||
public Builder clearClassifier() {
|
||||
bitField0_ = (bitField0_ & ~0x00000002);
|
||||
classifier_ = 0L;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
private boolean hasQuestionMark_ ;
|
||||
/**
|
||||
* <code>required bool has_question_mark = 3;</code>
|
||||
*/
|
||||
public boolean hasHasQuestionMark() {
|
||||
return ((bitField0_ & 0x00000004) == 0x00000004);
|
||||
}
|
||||
/**
|
||||
* <code>required bool has_question_mark = 3;</code>
|
||||
*/
|
||||
public boolean getHasQuestionMark() {
|
||||
return hasQuestionMark_;
|
||||
}
|
||||
/**
|
||||
* <code>required bool has_question_mark = 3;</code>
|
||||
*/
|
||||
public Builder setHasQuestionMark(boolean value) {
|
||||
bitField0_ |= 0x00000004;
|
||||
hasQuestionMark_ = value;
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>required bool has_question_mark = 3;</code>
|
||||
*/
|
||||
public Builder clearHasQuestionMark() {
|
||||
bitField0_ = (bitField0_ & ~0x00000004);
|
||||
hasQuestionMark_ = false;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
private java.util.List<java.lang.Long> argument_ = java.util.Collections.emptyList();
|
||||
private void ensureArgumentIsMutable() {
|
||||
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
|
||||
argument_ = new java.util.ArrayList<java.lang.Long>(argument_);
|
||||
bitField0_ |= 0x00000008;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated int64 argument = 4 [packed = true];</code>
|
||||
*
|
||||
* <pre>
|
||||
* 0 - STAR, otherwise [63..2 - IrType index | 1..0 - Variance]
|
||||
* </pre>
|
||||
*/
|
||||
public java.util.List<java.lang.Long>
|
||||
getArgumentList() {
|
||||
return java.util.Collections.unmodifiableList(argument_);
|
||||
}
|
||||
/**
|
||||
* <code>repeated int64 argument = 4 [packed = true];</code>
|
||||
*
|
||||
* <pre>
|
||||
* 0 - STAR, otherwise [63..2 - IrType index | 1..0 - Variance]
|
||||
* </pre>
|
||||
*/
|
||||
public int getArgumentCount() {
|
||||
return argument_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated int64 argument = 4 [packed = true];</code>
|
||||
*
|
||||
* <pre>
|
||||
* 0 - STAR, otherwise [63..2 - IrType index | 1..0 - Variance]
|
||||
* </pre>
|
||||
*/
|
||||
public long getArgument(int index) {
|
||||
return argument_.get(index);
|
||||
}
|
||||
/**
|
||||
* <code>repeated int64 argument = 4 [packed = true];</code>
|
||||
*
|
||||
* <pre>
|
||||
* 0 - STAR, otherwise [63..2 - IrType index | 1..0 - Variance]
|
||||
* </pre>
|
||||
*/
|
||||
public Builder setArgument(
|
||||
int index, long value) {
|
||||
ensureArgumentIsMutable();
|
||||
argument_.set(index, value);
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated int64 argument = 4 [packed = true];</code>
|
||||
*
|
||||
* <pre>
|
||||
* 0 - STAR, otherwise [63..2 - IrType index | 1..0 - Variance]
|
||||
* </pre>
|
||||
*/
|
||||
public Builder addArgument(long value) {
|
||||
ensureArgumentIsMutable();
|
||||
argument_.add(value);
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated int64 argument = 4 [packed = true];</code>
|
||||
*
|
||||
* <pre>
|
||||
* 0 - STAR, otherwise [63..2 - IrType index | 1..0 - Variance]
|
||||
* </pre>
|
||||
*/
|
||||
public Builder addAllArgument(
|
||||
java.lang.Iterable<? extends java.lang.Long> values) {
|
||||
ensureArgumentIsMutable();
|
||||
org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll(
|
||||
values, argument_);
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated int64 argument = 4 [packed = true];</code>
|
||||
*
|
||||
* <pre>
|
||||
* 0 - STAR, otherwise [63..2 - IrType index | 1..0 - Variance]
|
||||
* </pre>
|
||||
*/
|
||||
public Builder clearArgument() {
|
||||
argument_ = java.util.Collections.emptyList();
|
||||
bitField0_ = (bitField0_ & ~0x00000008);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
private org.jetbrains.kotlin.backend.common.serialization.proto.IrTypeAbbreviation abbreviation_ = org.jetbrains.kotlin.backend.common.serialization.proto.IrTypeAbbreviation.getDefaultInstance();
|
||||
/**
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrTypeAbbreviation abbreviation = 5;</code>
|
||||
*/
|
||||
public boolean hasAbbreviation() {
|
||||
return ((bitField0_ & 0x00000010) == 0x00000010);
|
||||
}
|
||||
/**
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrTypeAbbreviation abbreviation = 5;</code>
|
||||
*/
|
||||
public org.jetbrains.kotlin.backend.common.serialization.proto.IrTypeAbbreviation getAbbreviation() {
|
||||
return abbreviation_;
|
||||
}
|
||||
/**
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrTypeAbbreviation abbreviation = 5;</code>
|
||||
*/
|
||||
public Builder setAbbreviation(org.jetbrains.kotlin.backend.common.serialization.proto.IrTypeAbbreviation value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
abbreviation_ = value;
|
||||
|
||||
bitField0_ |= 0x00000010;
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrTypeAbbreviation abbreviation = 5;</code>
|
||||
*/
|
||||
public Builder setAbbreviation(
|
||||
org.jetbrains.kotlin.backend.common.serialization.proto.IrTypeAbbreviation.Builder builderForValue) {
|
||||
abbreviation_ = builderForValue.build();
|
||||
|
||||
bitField0_ |= 0x00000010;
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrTypeAbbreviation abbreviation = 5;</code>
|
||||
*/
|
||||
public Builder mergeAbbreviation(org.jetbrains.kotlin.backend.common.serialization.proto.IrTypeAbbreviation value) {
|
||||
if (((bitField0_ & 0x00000010) == 0x00000010) &&
|
||||
abbreviation_ != org.jetbrains.kotlin.backend.common.serialization.proto.IrTypeAbbreviation.getDefaultInstance()) {
|
||||
abbreviation_ =
|
||||
org.jetbrains.kotlin.backend.common.serialization.proto.IrTypeAbbreviation.newBuilder(abbreviation_).mergeFrom(value).buildPartial();
|
||||
} else {
|
||||
abbreviation_ = value;
|
||||
}
|
||||
|
||||
bitField0_ |= 0x00000010;
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrTypeAbbreviation abbreviation = 5;</code>
|
||||
*/
|
||||
public Builder clearAbbreviation() {
|
||||
abbreviation_ = org.jetbrains.kotlin.backend.common.serialization.proto.IrTypeAbbreviation.getDefaultInstance();
|
||||
|
||||
bitField0_ = (bitField0_ & ~0x00000010);
|
||||
return this;
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy)
|
||||
}
|
||||
|
||||
static {
|
||||
defaultInstance = new IrSimpleTypeLegacy(true);
|
||||
defaultInstance.initFields();
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy)
|
||||
}
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: compiler/ir/serialization.common/src/KotlinIr.proto
|
||||
|
||||
package org.jetbrains.kotlin.backend.common.serialization.proto;
|
||||
|
||||
public interface IrSimpleTypeLegacyOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy)
|
||||
org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 1;</code>
|
||||
*/
|
||||
java.util.List<org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall>
|
||||
getAnnotationList();
|
||||
/**
|
||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 1;</code>
|
||||
*/
|
||||
org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index);
|
||||
/**
|
||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 1;</code>
|
||||
*/
|
||||
int getAnnotationCount();
|
||||
|
||||
/**
|
||||
* <code>required int64 classifier = 2;</code>
|
||||
*/
|
||||
boolean hasClassifier();
|
||||
/**
|
||||
* <code>required int64 classifier = 2;</code>
|
||||
*/
|
||||
long getClassifier();
|
||||
|
||||
/**
|
||||
* <code>required bool has_question_mark = 3;</code>
|
||||
*/
|
||||
boolean hasHasQuestionMark();
|
||||
/**
|
||||
* <code>required bool has_question_mark = 3;</code>
|
||||
*/
|
||||
boolean getHasQuestionMark();
|
||||
|
||||
/**
|
||||
* <code>repeated int64 argument = 4 [packed = true];</code>
|
||||
*
|
||||
* <pre>
|
||||
* 0 - STAR, otherwise [63..2 - IrType index | 1..0 - Variance]
|
||||
* </pre>
|
||||
*/
|
||||
java.util.List<java.lang.Long> getArgumentList();
|
||||
/**
|
||||
* <code>repeated int64 argument = 4 [packed = true];</code>
|
||||
*
|
||||
* <pre>
|
||||
* 0 - STAR, otherwise [63..2 - IrType index | 1..0 - Variance]
|
||||
* </pre>
|
||||
*/
|
||||
int getArgumentCount();
|
||||
/**
|
||||
* <code>repeated int64 argument = 4 [packed = true];</code>
|
||||
*
|
||||
* <pre>
|
||||
* 0 - STAR, otherwise [63..2 - IrType index | 1..0 - Variance]
|
||||
* </pre>
|
||||
*/
|
||||
long getArgument(int index);
|
||||
|
||||
/**
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrTypeAbbreviation abbreviation = 5;</code>
|
||||
*/
|
||||
boolean hasAbbreviation();
|
||||
/**
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrTypeAbbreviation abbreviation = 5;</code>
|
||||
*/
|
||||
org.jetbrains.kotlin.backend.common.serialization.proto.IrTypeAbbreviation getAbbreviation();
|
||||
}
|
||||
+69
@@ -0,0 +1,69 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: compiler/ir/serialization.common/src/KotlinIr.proto
|
||||
|
||||
package org.jetbrains.kotlin.backend.common.serialization.proto;
|
||||
|
||||
/**
|
||||
* Protobuf enum {@code org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeNullability}
|
||||
*/
|
||||
public enum IrSimpleTypeNullability
|
||||
implements org.jetbrains.kotlin.protobuf.Internal.EnumLite {
|
||||
/**
|
||||
* <code>MARKED_NULLABLE = 0;</code>
|
||||
*/
|
||||
MARKED_NULLABLE(0, 0),
|
||||
/**
|
||||
* <code>NOT_SPECIFIED = 1;</code>
|
||||
*/
|
||||
NOT_SPECIFIED(1, 1),
|
||||
/**
|
||||
* <code>DEFINITELY_NOT_NULL = 2;</code>
|
||||
*/
|
||||
DEFINITELY_NOT_NULL(2, 2),
|
||||
;
|
||||
|
||||
/**
|
||||
* <code>MARKED_NULLABLE = 0;</code>
|
||||
*/
|
||||
public static final int MARKED_NULLABLE_VALUE = 0;
|
||||
/**
|
||||
* <code>NOT_SPECIFIED = 1;</code>
|
||||
*/
|
||||
public static final int NOT_SPECIFIED_VALUE = 1;
|
||||
/**
|
||||
* <code>DEFINITELY_NOT_NULL = 2;</code>
|
||||
*/
|
||||
public static final int DEFINITELY_NOT_NULL_VALUE = 2;
|
||||
|
||||
|
||||
public final int getNumber() { return value; }
|
||||
|
||||
public static IrSimpleTypeNullability valueOf(int value) {
|
||||
switch (value) {
|
||||
case 0: return MARKED_NULLABLE;
|
||||
case 1: return NOT_SPECIFIED;
|
||||
case 2: return DEFINITELY_NOT_NULL;
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static org.jetbrains.kotlin.protobuf.Internal.EnumLiteMap<IrSimpleTypeNullability>
|
||||
internalGetValueMap() {
|
||||
return internalValueMap;
|
||||
}
|
||||
private static org.jetbrains.kotlin.protobuf.Internal.EnumLiteMap<IrSimpleTypeNullability>
|
||||
internalValueMap =
|
||||
new org.jetbrains.kotlin.protobuf.Internal.EnumLiteMap<IrSimpleTypeNullability>() {
|
||||
public IrSimpleTypeNullability findValueByNumber(int number) {
|
||||
return IrSimpleTypeNullability.valueOf(number);
|
||||
}
|
||||
};
|
||||
|
||||
private final int value;
|
||||
|
||||
private IrSimpleTypeNullability(int index, int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(enum_scope:org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeNullability)
|
||||
}
|
||||
+4
-4
@@ -31,13 +31,13 @@ public interface IrSimpleTypeOrBuilder extends
|
||||
long getClassifier();
|
||||
|
||||
/**
|
||||
* <code>required bool has_question_mark = 3;</code>
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeNullability nullability = 3 [default = NOT_SPECIFIED];</code>
|
||||
*/
|
||||
boolean hasHasQuestionMark();
|
||||
boolean hasNullability();
|
||||
/**
|
||||
* <code>required bool has_question_mark = 3;</code>
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeNullability nullability = 3 [default = NOT_SPECIFIED];</code>
|
||||
*/
|
||||
boolean getHasQuestionMark();
|
||||
org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeNullability getNullability();
|
||||
|
||||
/**
|
||||
* <code>repeated int64 argument = 4 [packed = true];</code>
|
||||
|
||||
+160
-38
@@ -54,13 +54,13 @@ public final class IrType extends
|
||||
break;
|
||||
}
|
||||
case 10: {
|
||||
org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType.Builder subBuilder = null;
|
||||
org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy.Builder subBuilder = null;
|
||||
if (kindCase_ == 1) {
|
||||
subBuilder = ((org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType) kind_).toBuilder();
|
||||
subBuilder = ((org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy) kind_).toBuilder();
|
||||
}
|
||||
kind_ = input.readMessage(org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType.PARSER, extensionRegistry);
|
||||
kind_ = input.readMessage(org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy.PARSER, extensionRegistry);
|
||||
if (subBuilder != null) {
|
||||
subBuilder.mergeFrom((org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType) kind_);
|
||||
subBuilder.mergeFrom((org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy) kind_);
|
||||
kind_ = subBuilder.buildPartial();
|
||||
}
|
||||
kindCase_ = 1;
|
||||
@@ -105,6 +105,19 @@ public final class IrType extends
|
||||
kindCase_ = 4;
|
||||
break;
|
||||
}
|
||||
case 42: {
|
||||
org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType.Builder subBuilder = null;
|
||||
if (kindCase_ == 5) {
|
||||
subBuilder = ((org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType) kind_).toBuilder();
|
||||
}
|
||||
kind_ = input.readMessage(org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType.PARSER, extensionRegistry);
|
||||
if (subBuilder != null) {
|
||||
subBuilder.mergeFrom((org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType) kind_);
|
||||
kind_ = subBuilder.buildPartial();
|
||||
}
|
||||
kindCase_ = 5;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) {
|
||||
@@ -143,10 +156,11 @@ public final class IrType extends
|
||||
private java.lang.Object kind_;
|
||||
public enum KindCase
|
||||
implements org.jetbrains.kotlin.protobuf.Internal.EnumLite {
|
||||
SIMPLE(1),
|
||||
LEGACYSIMPLE(1),
|
||||
DYNAMIC(2),
|
||||
ERROR(3),
|
||||
DNN(4),
|
||||
SIMPLE(5),
|
||||
KIND_NOT_SET(0);
|
||||
private int value = 0;
|
||||
private KindCase(int value) {
|
||||
@@ -154,10 +168,11 @@ public final class IrType extends
|
||||
}
|
||||
public static KindCase valueOf(int value) {
|
||||
switch (value) {
|
||||
case 1: return SIMPLE;
|
||||
case 1: return LEGACYSIMPLE;
|
||||
case 2: return DYNAMIC;
|
||||
case 3: return ERROR;
|
||||
case 4: return DNN;
|
||||
case 5: return SIMPLE;
|
||||
case 0: return KIND_NOT_SET;
|
||||
default: throw new java.lang.IllegalArgumentException(
|
||||
"Value is undefined for this oneof enum.");
|
||||
@@ -174,21 +189,21 @@ public final class IrType extends
|
||||
kindCase_);
|
||||
}
|
||||
|
||||
public static final int SIMPLE_FIELD_NUMBER = 1;
|
||||
public static final int LEGACYSIMPLE_FIELD_NUMBER = 1;
|
||||
/**
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType simple = 1;</code>
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy legacySimple = 1;</code>
|
||||
*/
|
||||
public boolean hasSimple() {
|
||||
public boolean hasLegacySimple() {
|
||||
return kindCase_ == 1;
|
||||
}
|
||||
/**
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType simple = 1;</code>
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy legacySimple = 1;</code>
|
||||
*/
|
||||
public org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType getSimple() {
|
||||
public org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy getLegacySimple() {
|
||||
if (kindCase_ == 1) {
|
||||
return (org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType) kind_;
|
||||
return (org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy) kind_;
|
||||
}
|
||||
return org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType.getDefaultInstance();
|
||||
return org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy.getDefaultInstance();
|
||||
}
|
||||
|
||||
public static final int DYNAMIC_FIELD_NUMBER = 2;
|
||||
@@ -242,6 +257,23 @@ public final class IrType extends
|
||||
return org.jetbrains.kotlin.backend.common.serialization.proto.IrDefinitelyNotNullType.getDefaultInstance();
|
||||
}
|
||||
|
||||
public static final int SIMPLE_FIELD_NUMBER = 5;
|
||||
/**
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType simple = 5;</code>
|
||||
*/
|
||||
public boolean hasSimple() {
|
||||
return kindCase_ == 5;
|
||||
}
|
||||
/**
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType simple = 5;</code>
|
||||
*/
|
||||
public org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType getSimple() {
|
||||
if (kindCase_ == 5) {
|
||||
return (org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType) kind_;
|
||||
}
|
||||
return org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType.getDefaultInstance();
|
||||
}
|
||||
|
||||
private void initFields() {
|
||||
}
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@@ -250,8 +282,8 @@ public final class IrType extends
|
||||
if (isInitialized == 1) return true;
|
||||
if (isInitialized == 0) return false;
|
||||
|
||||
if (hasSimple()) {
|
||||
if (!getSimple().isInitialized()) {
|
||||
if (hasLegacySimple()) {
|
||||
if (!getLegacySimple().isInitialized()) {
|
||||
memoizedIsInitialized = 0;
|
||||
return false;
|
||||
}
|
||||
@@ -268,6 +300,12 @@ public final class IrType extends
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (hasSimple()) {
|
||||
if (!getSimple().isInitialized()) {
|
||||
memoizedIsInitialized = 0;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
memoizedIsInitialized = 1;
|
||||
return true;
|
||||
}
|
||||
@@ -276,7 +314,7 @@ public final class IrType extends
|
||||
throws java.io.IOException {
|
||||
getSerializedSize();
|
||||
if (kindCase_ == 1) {
|
||||
output.writeMessage(1, (org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType) kind_);
|
||||
output.writeMessage(1, (org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy) kind_);
|
||||
}
|
||||
if (kindCase_ == 2) {
|
||||
output.writeMessage(2, (org.jetbrains.kotlin.backend.common.serialization.proto.IrDynamicType) kind_);
|
||||
@@ -287,6 +325,9 @@ public final class IrType extends
|
||||
if (kindCase_ == 4) {
|
||||
output.writeMessage(4, (org.jetbrains.kotlin.backend.common.serialization.proto.IrDefinitelyNotNullType) kind_);
|
||||
}
|
||||
if (kindCase_ == 5) {
|
||||
output.writeMessage(5, (org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType) kind_);
|
||||
}
|
||||
output.writeRawBytes(unknownFields);
|
||||
}
|
||||
|
||||
@@ -298,7 +339,7 @@ public final class IrType extends
|
||||
size = 0;
|
||||
if (kindCase_ == 1) {
|
||||
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
||||
.computeMessageSize(1, (org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType) kind_);
|
||||
.computeMessageSize(1, (org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy) kind_);
|
||||
}
|
||||
if (kindCase_ == 2) {
|
||||
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
||||
@@ -312,6 +353,10 @@ public final class IrType extends
|
||||
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
||||
.computeMessageSize(4, (org.jetbrains.kotlin.backend.common.serialization.proto.IrDefinitelyNotNullType) kind_);
|
||||
}
|
||||
if (kindCase_ == 5) {
|
||||
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
||||
.computeMessageSize(5, (org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType) kind_);
|
||||
}
|
||||
size += unknownFields.size();
|
||||
memoizedSerializedSize = size;
|
||||
return size;
|
||||
@@ -443,6 +488,9 @@ public final class IrType extends
|
||||
if (kindCase_ == 4) {
|
||||
result.kind_ = kind_;
|
||||
}
|
||||
if (kindCase_ == 5) {
|
||||
result.kind_ = kind_;
|
||||
}
|
||||
result.bitField0_ = to_bitField0_;
|
||||
result.kindCase_ = kindCase_;
|
||||
return result;
|
||||
@@ -451,8 +499,8 @@ public final class IrType extends
|
||||
public Builder mergeFrom(org.jetbrains.kotlin.backend.common.serialization.proto.IrType other) {
|
||||
if (other == org.jetbrains.kotlin.backend.common.serialization.proto.IrType.getDefaultInstance()) return this;
|
||||
switch (other.getKindCase()) {
|
||||
case SIMPLE: {
|
||||
mergeSimple(other.getSimple());
|
||||
case LEGACYSIMPLE: {
|
||||
mergeLegacySimple(other.getLegacySimple());
|
||||
break;
|
||||
}
|
||||
case DYNAMIC: {
|
||||
@@ -467,6 +515,10 @@ public final class IrType extends
|
||||
mergeDnn(other.getDnn());
|
||||
break;
|
||||
}
|
||||
case SIMPLE: {
|
||||
mergeSimple(other.getSimple());
|
||||
break;
|
||||
}
|
||||
case KIND_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
@@ -477,8 +529,8 @@ public final class IrType extends
|
||||
}
|
||||
|
||||
public final boolean isInitialized() {
|
||||
if (hasSimple()) {
|
||||
if (!getSimple().isInitialized()) {
|
||||
if (hasLegacySimple()) {
|
||||
if (!getLegacySimple().isInitialized()) {
|
||||
|
||||
return false;
|
||||
}
|
||||
@@ -495,6 +547,12 @@ public final class IrType extends
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (hasSimple()) {
|
||||
if (!getSimple().isInitialized()) {
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -532,24 +590,24 @@ public final class IrType extends
|
||||
private int bitField0_;
|
||||
|
||||
/**
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType simple = 1;</code>
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy legacySimple = 1;</code>
|
||||
*/
|
||||
public boolean hasSimple() {
|
||||
public boolean hasLegacySimple() {
|
||||
return kindCase_ == 1;
|
||||
}
|
||||
/**
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType simple = 1;</code>
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy legacySimple = 1;</code>
|
||||
*/
|
||||
public org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType getSimple() {
|
||||
public org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy getLegacySimple() {
|
||||
if (kindCase_ == 1) {
|
||||
return (org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType) kind_;
|
||||
return (org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy) kind_;
|
||||
}
|
||||
return org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType.getDefaultInstance();
|
||||
return org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy.getDefaultInstance();
|
||||
}
|
||||
/**
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType simple = 1;</code>
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy legacySimple = 1;</code>
|
||||
*/
|
||||
public Builder setSimple(org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType value) {
|
||||
public Builder setLegacySimple(org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
@@ -559,22 +617,22 @@ public final class IrType extends
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType simple = 1;</code>
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy legacySimple = 1;</code>
|
||||
*/
|
||||
public Builder setSimple(
|
||||
org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType.Builder builderForValue) {
|
||||
public Builder setLegacySimple(
|
||||
org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy.Builder builderForValue) {
|
||||
kind_ = builderForValue.build();
|
||||
|
||||
kindCase_ = 1;
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType simple = 1;</code>
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy legacySimple = 1;</code>
|
||||
*/
|
||||
public Builder mergeSimple(org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType value) {
|
||||
public Builder mergeLegacySimple(org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy value) {
|
||||
if (kindCase_ == 1 &&
|
||||
kind_ != org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType.getDefaultInstance()) {
|
||||
kind_ = org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType.newBuilder((org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType) kind_)
|
||||
kind_ != org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy.getDefaultInstance()) {
|
||||
kind_ = org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy.newBuilder((org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy) kind_)
|
||||
.mergeFrom(value).buildPartial();
|
||||
} else {
|
||||
kind_ = value;
|
||||
@@ -584,9 +642,9 @@ public final class IrType extends
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType simple = 1;</code>
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy legacySimple = 1;</code>
|
||||
*/
|
||||
public Builder clearSimple() {
|
||||
public Builder clearLegacySimple() {
|
||||
if (kindCase_ == 1) {
|
||||
kindCase_ = 0;
|
||||
kind_ = null;
|
||||
@@ -787,6 +845,70 @@ public final class IrType extends
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType simple = 5;</code>
|
||||
*/
|
||||
public boolean hasSimple() {
|
||||
return kindCase_ == 5;
|
||||
}
|
||||
/**
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType simple = 5;</code>
|
||||
*/
|
||||
public org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType getSimple() {
|
||||
if (kindCase_ == 5) {
|
||||
return (org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType) kind_;
|
||||
}
|
||||
return org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType.getDefaultInstance();
|
||||
}
|
||||
/**
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType simple = 5;</code>
|
||||
*/
|
||||
public Builder setSimple(org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
kind_ = value;
|
||||
|
||||
kindCase_ = 5;
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType simple = 5;</code>
|
||||
*/
|
||||
public Builder setSimple(
|
||||
org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType.Builder builderForValue) {
|
||||
kind_ = builderForValue.build();
|
||||
|
||||
kindCase_ = 5;
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType simple = 5;</code>
|
||||
*/
|
||||
public Builder mergeSimple(org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType value) {
|
||||
if (kindCase_ == 5 &&
|
||||
kind_ != org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType.getDefaultInstance()) {
|
||||
kind_ = org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType.newBuilder((org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType) kind_)
|
||||
.mergeFrom(value).buildPartial();
|
||||
} else {
|
||||
kind_ = value;
|
||||
}
|
||||
|
||||
kindCase_ = 5;
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType simple = 5;</code>
|
||||
*/
|
||||
public Builder clearSimple() {
|
||||
if (kindCase_ == 5) {
|
||||
kindCase_ = 0;
|
||||
kind_ = null;
|
||||
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.backend.common.serialization.proto.IrType)
|
||||
}
|
||||
|
||||
|
||||
+13
-4
@@ -8,13 +8,13 @@ public interface IrTypeOrBuilder extends
|
||||
org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType simple = 1;</code>
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy legacySimple = 1;</code>
|
||||
*/
|
||||
boolean hasSimple();
|
||||
boolean hasLegacySimple();
|
||||
/**
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType simple = 1;</code>
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy legacySimple = 1;</code>
|
||||
*/
|
||||
org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType getSimple();
|
||||
org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleTypeLegacy getLegacySimple();
|
||||
|
||||
/**
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrDynamicType dynamic = 2;</code>
|
||||
@@ -42,4 +42,13 @@ public interface IrTypeOrBuilder extends
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrDefinitelyNotNullType dnn = 4;</code>
|
||||
*/
|
||||
org.jetbrains.kotlin.backend.common.serialization.proto.IrDefinitelyNotNullType getDnn();
|
||||
|
||||
/**
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType simple = 5;</code>
|
||||
*/
|
||||
boolean hasSimple();
|
||||
/**
|
||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType simple = 5;</code>
|
||||
*/
|
||||
org.jetbrains.kotlin.backend.common.serialization.proto.IrSimpleType getSimple();
|
||||
}
|
||||
Reference in New Issue
Block a user