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

Function placedByLookup

__tests__/cpp-implicit-this-calls.test.ts:48–50  ·  view source on GitHub ↗

Whether C++ name lookup from the calling function (not a guess by name) placed the call `refName`.

(cg: CodeGraph, file: string, qualifiedName: string, refName: string)

Source from the content-addressed store, hash-verified

46
47/** Whether C++ name lookup from the calling function (not a guess by name) placed the call `refName`. */
48function placedByLookup(cg: CodeGraph, file: string, qualifiedName: string, refName: string): boolean {
49 return callEdgesFrom(cg, file, qualifiedName).some((e) => e.refName === refName && e.resolvedBy === 'instance-method');
50}
51
52const MESSAGE_LITE = `#pragma once
53namespace pb {

Callers 1

Calls 1

callEdgesFromFunction · 0.85

Tested by

no test coverage detected