( signatures: ReadonlyArray<ts.Signature>, checker: ts.TypeChecker, location: ts.Node )
| 2923 | } |
| 2924 | |
| 2925 | function representativeSignatures( |
| 2926 | signatures: ReadonlyArray<ts.Signature>, |
| 2927 | checker: ts.TypeChecker, |
| 2928 | location: ts.Node |
| 2929 | ): ReadonlyArray<ts.Signature> { |
| 2930 | const seen = new Set<string>() |
| 2931 | const out: Array<ts.Signature> = [] |
| 2932 | for (const signature of signatures) { |
| 2933 | const key = signatureShapeKey(signature, checker, location) |
| 2934 | if (seen.has(key)) continue |
| 2935 | seen.add(key) |
| 2936 | out.push(signature) |
| 2937 | } |
| 2938 | return out |
| 2939 | } |
| 2940 | |
| 2941 | function functionSignature( |
| 2942 | name: string, |
no test coverage detected