Permalink
Browse files

tools, feat: reorder module list.

  • Loading branch information...
xicilion committed Jul 19, 2018
1 parent 2e7e44f commit 580400507057a82eff04010d8106674b52200370
Showing with 11 additions and 7 deletions.
  1. +11 −7 tools/util/parser.js
View
@@ -405,10 +405,7 @@ function parser_comment(comment) {
}
module.exports = function (baseFolder, defs) {
defs = defs || {};
for (var n in defs)
defs[n].__skip = true;
var defs1 = {};
fs.readdir(baseFolder).sort().forEach(f => {
if (path.extname(f) == '.idl') {
@@ -419,11 +416,18 @@ module.exports = function (baseFolder, defs) {
for (var m in def.members)
def.members[m].doc = parser_comment(def.members[m].comments);
defs[def.declare.name] = def;
defs1[def.declare.name] = def;
}
});
delete defs['object'].declare.extend;
if (defs) {
for (var n in defs) {
defs[n].__skip = true;
defs1[n] = defs[n];
}
delete defs1['object'].declare.extend;
}
return defs;
return defs1;
};

0 comments on commit 5804005

Please sign in to comment.