(symbols: string[], queryTerms: Set<string>)
| 379 | } |
| 380 | |
| 381 | function getMatchedSymbols(symbols: string[], queryTerms: Set<string>): string[] { |
| 382 | if (queryTerms.size === 0) return []; |
| 383 | return symbols.filter((symbol) => splitCamelCase(symbol).some((term) => queryTerms.has(term))); |
| 384 | } |
| 385 | |
| 386 | function computeKeywordScore(query: string, queryTerms: Set<string>, doc: SearchDocument, matchedSymbols: string[]): number { |
| 387 | if (queryTerms.size === 0) return 0; |
no test coverage detected