Write new protobuf messages for packages as well as classes
An addition to ad735cd
This commit is contained in:
+14
@@ -580,6 +580,13 @@ public class DescriptorSerializer {
|
|||||||
if (declaration instanceof PropertyDescriptor || declaration instanceof FunctionDescriptor) {
|
if (declaration instanceof PropertyDescriptor || declaration instanceof FunctionDescriptor) {
|
||||||
builder.addMember(callableProto((CallableMemberDescriptor) declaration));
|
builder.addMember(callableProto((CallableMemberDescriptor) declaration));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (declaration instanceof PropertyDescriptor) {
|
||||||
|
builder.addProperty(propertyProto((PropertyDescriptor) declaration));
|
||||||
|
}
|
||||||
|
else if (declaration instanceof FunctionDescriptor) {
|
||||||
|
builder.addFunction(functionProto((FunctionDescriptor) declaration));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
extension.serializePackage(fragments, builder);
|
extension.serializePackage(fragments, builder);
|
||||||
@@ -595,6 +602,13 @@ public class DescriptorSerializer {
|
|||||||
if (declaration instanceof PropertyDescriptor || declaration instanceof FunctionDescriptor) {
|
if (declaration instanceof PropertyDescriptor || declaration instanceof FunctionDescriptor) {
|
||||||
builder.addMember(callableProto((CallableMemberDescriptor) declaration));
|
builder.addMember(callableProto((CallableMemberDescriptor) declaration));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (declaration instanceof PropertyDescriptor) {
|
||||||
|
builder.addProperty(propertyProto((PropertyDescriptor) declaration));
|
||||||
|
}
|
||||||
|
else if (declaration instanceof FunctionDescriptor) {
|
||||||
|
builder.addFunction(functionProto((FunctionDescriptor) declaration));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return builder;
|
return builder;
|
||||||
|
|||||||
Reference in New Issue
Block a user