Do not add symbol if it is undefined

This commit is contained in:
Mohamed Hegazy 2015-09-03 13:53:00 -07:00
parent 5542e396d7
commit a579d41a57

View File

@ -14166,7 +14166,10 @@ namespace ts {
let symbols: Symbol[] = [];
let name = symbol.name;
forEach(getSymbolLinks(symbol).containingType.types, t => {
symbols.push(getPropertyOfType(t, name));
let symbol = getPropertyOfType(t, name);
if (symbol) {
symbols.push(symbol);
}
});
return symbols;
}