(code: string)
| 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([ |
no test coverage detected