From a5f2269d8d015271021df4db065a56cb992f45e0 Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Thu, 11 Jul 2019 15:22:37 -0700 Subject: [PATCH] Add note that symbols is mutated --- src/services/completions.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/services/completions.ts b/src/services/completions.ts index 142679373a5..6809110a7cd 100644 --- a/src/services/completions.ts +++ b/src/services/completions.ts @@ -1316,6 +1316,8 @@ namespace ts.Completions { * 4. After we’ve iterated through every symbol of every module, any symbol left in Bucket C means that step 3 didn’t * occur for that symbol---that is, the original symbol is not in Bucket A, so we should include the alias. Move * everything from Bucket C to Bucket A. + * + * Note: Bucket A is passed in as the parameter `symbols` and mutated. */ function getSymbolsFromOtherSourceFileExports(/** Bucket A */ symbols: Symbol[], tokenText: string, target: ScriptTarget, host: LanguageServiceHost): void { const tokenTextLowerCase = tokenText.toLowerCase();