(ref: UnresolvedRef)
| 24 | const CONSTRUCTOR_REF = /^(.*)::([^:]+)\/(\d+)$/; |
| 25 | |
| 26 | export function isCppConstructorRef(ref: UnresolvedRef): boolean { |
| 27 | return ref.language === 'cpp' && ref.referenceKind === 'calls' && /::[^:]+\/\d+$/.test(ref.referenceName); |
| 28 | } |
| 29 | |
| 30 | /** Admissible argument counts of a `(params)` signature; null when it can't be read. */ |
| 31 | function constructorShape(signature: string | undefined): { min: number; max: number; key: string } | null { |