From e9457461af3e2e1f49e600a7c65bc74e978b90dc Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Tue, 26 Aug 2014 22:21:25 +0200 Subject: [PATCH] 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. --- tasks/generate-externs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/generate-externs.js b/tasks/generate-externs.js index 3bd5117e22..c93472d5dd 100644 --- a/tasks/generate-externs.js +++ b/tasks/generate-externs.js @@ -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'); }