Refine metadata format for typealias based type
This commit is contained in:
@@ -409,7 +409,7 @@ open class ProtoCompareGenerated(val oldNameResolver: NameResolver, val newNameR
|
||||
|
||||
if (old.hasTypeAliasName() != new.hasTypeAliasName()) return false
|
||||
if (old.hasTypeAliasName()) {
|
||||
if (!checkStringEquals(old.typeAliasName, new.typeAliasName)) return false
|
||||
if (!checkClassIdEquals(old.typeAliasName, new.typeAliasName)) return false
|
||||
}
|
||||
|
||||
if (old.hasOuterType() != new.hasOuterType()) return false
|
||||
@@ -1194,7 +1194,7 @@ fun ProtoBuf.Type.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes: (Int) ->
|
||||
}
|
||||
|
||||
if (hasTypeAliasName()) {
|
||||
hashCode = 31 * hashCode + stringIndexes(typeAliasName)
|
||||
hashCode = 31 * hashCode + fqNameIndexes(typeAliasName)
|
||||
}
|
||||
|
||||
if (hasOuterType()) {
|
||||
|
||||
@@ -24149,7 +24149,7 @@ public final class DebugProtoBuf {
|
||||
"Type\022\037\n\027flexible_upper_bound_id\030\010 \001(\005\022\030\n" +
|
||||
"\nclass_name\030\006 \001(\005B\004\220\265\030\001\022\026\n\016type_paramete" +
|
||||
"r\030\007 \001(\005\022!\n\023type_parameter_name\030\t \001(\005B\004\210\265",
|
||||
"\030\001\022\035\n\017type_alias_name\030\014 \001(\005B\004\210\265\030\001\022<\n\nout" +
|
||||
"\030\001\022\035\n\017type_alias_name\030\014 \001(\005B\004\220\265\030\001\022<\n\nout" +
|
||||
"er_type\030\n \001(\0132(.org.jetbrains.kotlin.ser" +
|
||||
"ialization.Type\022\025\n\router_type_id\030\013 \001(\005\022B" +
|
||||
"\n\020abbreviated_type\030\r \001(\0132(.org.jetbrains" +
|
||||
@@ -24378,7 +24378,7 @@ public final class DebugProtoBuf {
|
||||
registry.add(org.jetbrains.kotlin.serialization.DebugExtOptionsProtoBuf.stringIdInTable);
|
||||
registry.add(org.jetbrains.kotlin.serialization.DebugExtOptionsProtoBuf.fqNameIdInTable);
|
||||
registry.add(org.jetbrains.kotlin.serialization.DebugExtOptionsProtoBuf.nameIdInTable);
|
||||
registry.add(org.jetbrains.kotlin.serialization.DebugExtOptionsProtoBuf.nameIdInTable);
|
||||
registry.add(org.jetbrains.kotlin.serialization.DebugExtOptionsProtoBuf.fqNameIdInTable);
|
||||
registry.add(org.jetbrains.kotlin.serialization.DebugExtOptionsProtoBuf.nameIdInTable);
|
||||
registry.add(org.jetbrains.kotlin.serialization.DebugExtOptionsProtoBuf.fqNameIdInTable);
|
||||
registry.add(org.jetbrains.kotlin.serialization.DebugExtOptionsProtoBuf.nameIdInTable);
|
||||
|
||||
@@ -127,7 +127,7 @@ message Type {
|
||||
optional int32 type_parameter = 7; // id of the type parameter
|
||||
// Name of the type parameter in the immediate owner
|
||||
optional int32 type_parameter_name = 9 [(name_id_in_table) = true];
|
||||
optional int32 type_alias_name = 12 [(name_id_in_table) = true];
|
||||
optional int32 type_alias_name = 12 [(fq_name_id_in_table) = true];
|
||||
|
||||
optional Type outer_type = 10;
|
||||
optional int32 outer_type_id = 11;
|
||||
|
||||
Reference in New Issue
Block a user