MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / isCppConstructorRef

Function isCppConstructorRef

src/resolution/cpp-constructor.ts:26–28  ·  view source on GitHub ↗
(ref: UnresolvedRef)

Source from the content-addressed store, hash-verified

24const CONSTRUCTOR_REF = /^(.*)::([^:]+)\/(\d+)$/;
25
26export 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. */
31function constructorShape(signature: string | undefined): { min: number; max: number; key: string } | null {

Callers 1

resolveOneInnerMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected