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

Function infoOf

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

Source from the content-addressed store, hash-verified

4804 // same recover-don't-drop approach as the macro-annotated-class fix. Pervasive
4805 // in Unreal Engine (`FORCEINLINE`).
4806 const infoOf = (code: string) =>
4807 extractFromSource('m.cpp', code).nodes
4808 .filter((n) => n.kind === 'method' || n.kind === 'function')
4809 .map((n) => ({ name: n.name, ret: n.returnType }));
4810
4811 it('recovers the real name AND return type of a FORCEINLINE function', () => {
4812 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