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