From ad75ce7b2fa8153324f46941a107f6d0f9b4bdfa Mon Sep 17 00:00:00 2001 From: Benjamin Lichtman Date: Tue, 15 Jan 2019 11:49:24 -0800 Subject: [PATCH] Update comment and remove unnecessary exprot --- src/services/findAllReferences.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/findAllReferences.ts b/src/services/findAllReferences.ts index 0bbcdd2cc48ee..bc43091f16c23 100644 --- a/src/services/findAllReferences.ts +++ b/src/services/findAllReferences.ts @@ -183,7 +183,7 @@ namespace ts.FindAllReferences { }; } - export function entryToDocumentSpan(entry: Entry): DocumentSpan { + function entryToDocumentSpan(entry: Entry): DocumentSpan { if (entry.kind === EntryKind.Span) { return { textSpan: entry.textSpan, fileName: entry.fileName }; } @@ -1599,7 +1599,7 @@ namespace ts.FindAllReferences.Core { } Debug.assert(isForRenamePopulateSearchSymbolSet); - // due to the above assert and the arguments to the caller, + // due to the above assert and the arguments at the uses of this function, // (onlyIncludeBindingElementAtReferenceLocation <=> !providePrefixAndSuffixTextForRename) holds const includeOriginalSymbolOfBindingElement = onlyIncludeBindingElementAtReferenceLocation;