Merge pull request #2635 from ahocevar/typedefs-after-symbols

Process typedefs last when generating externs
This commit is contained in:
Andreas Hocevar
2014-08-27 10:54:27 +02:00

View File

@@ -126,6 +126,8 @@ function generateExterns(typedefs, symbols, externs) {
externs.forEach(processSymbol);
symbols.forEach(processSymbol);
typedefs.forEach(function(typedef) {
addNamespaces(typedef.name);
lines.push('/**');
@@ -135,8 +137,6 @@ function generateExterns(typedefs, symbols, externs) {
lines.push('\n');
});
symbols.forEach(processSymbol);
return lines.join('\n');
}