Package part proto generation fix

This commit is contained in:
Michael Bogdanov
2015-09-04 16:02:46 +03:00
parent 4958116566
commit 49ee4169f3
2 changed files with 2 additions and 14 deletions
@@ -433,12 +433,10 @@ public class DescriptorSerializer {
}
@NotNull
public ProtoBuf.Package.Builder packagePartProto(@NotNull Collection<DeclarationDescriptor> members, @Nullable Function1<DeclarationDescriptor, Boolean> skip) {
public ProtoBuf.Package.Builder packagePartProto(@NotNull Collection<DeclarationDescriptor> members) {
ProtoBuf.Package.Builder builder = ProtoBuf.Package.newBuilder();
for (DeclarationDescriptor declaration : sort(members)) {
if (skip != null && skip.invoke(declaration)) continue;
if (declaration instanceof PropertyDescriptor || declaration instanceof FunctionDescriptor) {
builder.addMember(callableProto((CallableMemberDescriptor) declaration));
}