MCPcopy
hub / github.com/colbymchenry/codegraph / infoOf

Function infoOf

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

Source from the content-addressed store, hash-verified

2938 // same recover-don't-drop approach as the macro-annotated-class fix. Pervasive
2939 // in Unreal Engine (`FORCEINLINE`).
2940 const infoOf = (code: string) =>
2941 extractFromSource('m.cpp', code).nodes
2942 .filter((n) => n.kind === 'method' || n.kind === 'function')
2943 .map((n) => ({ name: n.name, ret: n.returnType }));
2944
2945 it('recovers the real name AND return type of a FORCEINLINE function', () => {
2946 expect(infoOf('static FORCEINLINE FString GetName(int V) { return H(V); }')).toEqual([

Callers 1

extraction.test.tsFile · 0.85

Calls 1

extractFromSourceFunction · 0.90

Tested by

no test coverage detected