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

Function inKept

src/extraction/objcpp-extractor.ts:117–120  ·  view source on GitHub ↗
(offset: number)

Source from the content-addressed store, hash-verified

115 const kept = parts.items.filter((item, k) => item.bare || checked!.found[k]! > 0);
116 const keptStarts = kept.map((item) => item.start);
117 const inKept = (offset: number): boolean => {
118 const k = lastStartingBefore(keptStarts, offset);
119 return k >= 0 && offset < kept[k]!.end;
120 };
121
122 const cppNodes: Node[] = [];
123 // The C++ functions and methods by their extent, to find the one a message send is written in.

Callers 1

extractObjcppFunction · 0.85

Calls 1

lastStartingBeforeFunction · 0.85

Tested by

no test coverage detected