(symbol, origin)
| 134116 | } |
| 134117 | } |
| 134118 | function pushAutoImportSymbol(symbol, origin) { |
| 134119 | var symbolId = ts.getSymbolId(symbol); |
| 134120 | if (symbolToSortTextMap[symbolId] === Completions.SortText.GlobalsOrKeywords) { |
| 134121 | // If an auto-importable symbol is available as a global, don't add the auto import |
| 134122 | return; |
| 134123 | } |
| 134124 | symbolToOriginInfoMap[symbols.length] = origin; |
| 134125 | symbolToSortTextMap[symbolId] = importCompletionNode ? Completions.SortText.LocationPriority : Completions.SortText.AutoImportSuggestions; |
| 134126 | symbols.push(symbol); |
| 134127 | } |
| 134128 | /* Mutates `symbols` and `symbolToOriginInfoMap`. */ |
| 134129 | function collectObjectLiteralMethodSymbols(members, enclosingDeclaration) { |
| 134130 | // TODO: support JS files. |
no test coverage detected