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

Function buildDeclaratorRegex

src/resolution/name-matcher.ts:681–685  ·  view source on GitHub ↗
(escapedReceiver: string)

Source from the content-addressed store, hash-verified

679// terminator rules out uses like `return receiver->m()` where the preceding
680// token is a keyword, not a type.
681function buildDeclaratorRegex(escapedReceiver: string): RegExp {
682 return new RegExp(
683 `([A-Za-z_][\\w:]*(?:\\s*<[^;=(){}]+>)?(?:\\s*[*&]+)?)\\s*\\b${escapedReceiver}\\b\\s*(?=[;=,)\\[{(]|$)`,
684 );
685}
686
687function inferCppReceiverType(
688 receiverName: string,

Callers 1

inferCppReceiverTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected