Serialize/deserialize annotations on type parameters
This commit is contained in:
+1
@@ -407,6 +407,7 @@ public class DescriptorSerializer {
|
||||
if (variance != builder.getVariance()) {
|
||||
builder.setVariance(variance);
|
||||
}
|
||||
extension.serializeTypeParameter(typeParameter, builder);
|
||||
|
||||
Set<JetType> upperBounds = typeParameter.getUpperBounds();
|
||||
if (upperBounds.size() == 1 && KotlinBuiltIns.isDefaultBound(CollectionsKt.single(upperBounds))) return builder;
|
||||
|
||||
@@ -50,4 +50,7 @@ public abstract class SerializerExtension {
|
||||
|
||||
public void serializeType(@NotNull JetType type, @NotNull ProtoBuf.Type.Builder proto) {
|
||||
}
|
||||
|
||||
public void serializeTypeParameter(@NotNull TypeParameterDescriptor typeParameter, @NotNull ProtoBuf.TypeParameter.Builder proto) {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user