Add multiMapAdd helper

This commit is contained in:
Andy Hanson
2016-08-19 07:15:19 -07:00
parent d2d5d42359
commit 949c517fdd
6 changed files with 21 additions and 10 deletions
+1 -2
View File
@@ -984,8 +984,7 @@ namespace ts {
function addDeclaration(declaration: Declaration) {
const name = getDeclarationName(declaration);
if (name) {
const declarations = getDeclarations(name);
declarations.push(declaration);
multiMapAdd(result, name, declaration);
}
}