Process typedefs last
Becasue typedefs sometimes use namespaces that are actually constructors, we need to process typedefs after symbols to avoid duplicate entries for such namespace types.
This commit is contained in:
1 parent
dea670f754
commit
e9457461af
1 file changed
+2
-2
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user