Fix case when position === 0

(cherry picked from commit 1231c9e145)
This commit is contained in:
Ryan Cavanaugh
2016-01-28 16:05:03 -08:00
committed by Bill Ticehurst
parent f84bbcdf59
commit c6e18a9fcf

View File

@@ -5490,7 +5490,7 @@ namespace ts {
const nameTable = getNameTable(sourceFile);
if (lookUp(nameTable, internedName)) {
if (lookUp(nameTable, internedName) !== undefined) {
result = result || [];
getReferencesInNode(sourceFile, symbol, declaredName, node, searchMeaning, findInStrings, findInComments, result, symbolToIndex);
}