MCPcopy Index your code
hub / github.com/documentationjs/documentation / evaluate

Function evaluate

__tests__/lib/infer/return.js:15–17  ·  view source on GitHub ↗
(code, filename)

Source from the content-addressed store, hash-verified

13}
14
15function evaluate(code, filename) {
16 return inferReturn(toComment(code, filename));
17}
18
19test('inferReturn (flow)', function () {
20 expect(evaluate('/** */function a(): number {}').returns).toEqual([

Callers 1

return.jsFile · 0.70

Calls 2

inferReturnFunction · 0.85
toCommentFunction · 0.70

Tested by

no test coverage detected