(hit: SymbolSearchHit, name: string)
| 158 | * dropped before anything is ordered. |
| 159 | */ |
| 160 | export function subjectScore(hit: SymbolSearchHit, name: string): number { |
| 161 | const exact = subjectSpecificity(hit, name, true); |
| 162 | return exact > 0 ? SUBJECT_SPELLING_BONUS + exact : subjectSpecificity(hit, name, false); |
| 163 | } |
| 164 | |
| 165 | /** |
| 166 | * Order candidates so two readings of one index agree. |
no test coverage detected