Remove logic for no longer existent externs
This commit is contained in:
@@ -58,7 +58,6 @@ exports.publish = function(data, opts) {
|
|||||||
}
|
}
|
||||||
return include;
|
return include;
|
||||||
}).forEach(function(doc) {
|
}).forEach(function(doc) {
|
||||||
const isExterns = (/[\\\/]externs$/).test(doc.meta.path);
|
|
||||||
if (doc.kind == 'module') {
|
if (doc.kind == 'module') {
|
||||||
modules.push({
|
modules.push({
|
||||||
name: doc.longname,
|
name: doc.longname,
|
||||||
@@ -124,7 +123,7 @@ exports.publish = function(data, opts) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const target = isExterns ? externs : (doc.api ? symbols : base);
|
const target = doc.api ? symbols : base;
|
||||||
const existingSymbol = symbolsByName[symbol.name];
|
const existingSymbol = symbolsByName[symbol.name];
|
||||||
if (existingSymbol) {
|
if (existingSymbol) {
|
||||||
const idx = target.indexOf(existingSymbol);
|
const idx = target.indexOf(existingSymbol);
|
||||||
|
|||||||
Reference in New Issue
Block a user