public Schema prune() { markRoots(); markReachable(); ImmutableList.Builder<ProtoFile> retained = ImmutableList.builder(); for (ProtoFile protoFile : schema.protoFiles()) { retained.add(protoFile.retainAll(schema, marks)); } return new Schema(retained.build()); }
public Schema prune() { markRoots(); markReachable(); ImmutableList.Builder<ProtoFile> retained = ImmutableList.builder(); for (ProtoFile protoFile : schema.protoFiles()) { retained.add(protoFile.retainAll(schema, marks)); } return new Schema(retained.build()); }
public Schema prune() { markRoots(); markReachable(); ImmutableList.Builder<ProtoFile> retained = ImmutableList.builder(); for (ProtoFile protoFile : schema.protoFiles()) { retained.add(protoFile.retainAll(schema, marks)); } return new Schema(retained.build()); }