Skip to content

Commit

Permalink
New: Also handle services in ext/descriptor (#1001)
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyguava authored and dcodeIO committed Mar 18, 2018
1 parent 7c391d6 commit 07c5d59
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/descriptor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ Root.fromDescriptor = function fromDescriptor(descriptor) {
if (fileDescriptor.extension)
for (i = 0; i < fileDescriptor.extension.length; ++i)
filePackage.add(Field.fromDescriptor(fileDescriptor.extension[i]));
if (fileDescriptor.service)
for (i = 0; i < fileDescriptor.service.length; ++i)
filePackage.add(Service.fromDescriptor(fileDescriptor.service[i]));
var opts = fromDescriptorOptions(fileDescriptor.options, exports.FileOptions);
if (opts) {
var ks = Object.keys(opts);
Expand Down

0 comments on commit 07c5d59

Please sign in to comment.