Merge pull request #2635 from ahocevar/typedefs-after-symbols
Process typedefs last when generating externs
This commit is contained in:
@@ -126,6 +126,8 @@ function generateExterns(typedefs, symbols, externs) {
|
|||||||
|
|
||||||
externs.forEach(processSymbol);
|
externs.forEach(processSymbol);
|
||||||
|
|
||||||
|
symbols.forEach(processSymbol);
|
||||||
|
|
||||||
typedefs.forEach(function(typedef) {
|
typedefs.forEach(function(typedef) {
|
||||||
addNamespaces(typedef.name);
|
addNamespaces(typedef.name);
|
||||||
lines.push('/**');
|
lines.push('/**');
|
||||||
@@ -135,8 +137,6 @@ function generateExterns(typedefs, symbols, externs) {
|
|||||||
lines.push('\n');
|
lines.push('\n');
|
||||||
});
|
});
|
||||||
|
|
||||||
symbols.forEach(processSymbol);
|
|
||||||
|
|
||||||
return lines.join('\n');
|
return lines.join('\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user