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:
@@ -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