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

Function infoOf

__tests__/extraction.test.ts:4803–4806  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

4801 // same recover-don't-drop approach as the macro-annotated-class fix. Pervasive
4802 // in Unreal Engine (`FORCEINLINE`).
4803 const infoOf = (code: string) =>
4804 extractFromSource('m.cpp', code).nodes
4805 .filter((n) => n.kind === 'method' || n.kind === 'function')
4806 .map((n) => ({ name: n.name, ret: n.returnType }));
4807
4808 it('recovers the real name AND return type of a FORCEINLINE function', () => {
4809 expect(infoOf('static FORCEINLINE FString GetName(int V) { return H(V); }')).toEqual([

Callers 1

extraction.test.tsFile · 0.85

Calls 2

extractFromSourceFunction · 0.90
mapMethod · 0.80

Tested by

no test coverage detected