documentation/test/fixture/var-function-param-return.output.json
Erik Arvidsson 384ccbcf5e Fix inferring return type of var function (#545)
I accidentally broke the detection of the return type in:

```js
var f = function(x: number): boolean {}
```
2016-10-10 17:18:07 -04:00

61 lines
952 B
JSON

[
{
"description": "",
"tags": [],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 6
}
},
"context": {
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 39
}
}
},
"errors": [],
"name": "f",
"kind": "function",
"params": [
{
"title": "param",
"name": "x",
"lineNumber": 2,
"type": {
"type": "NameExpression",
"name": "number"
}
}
],
"returns": [
{
"type": {
"type": "NameExpression",
"name": "boolean"
}
}
],
"members": {
"instance": [],
"static": []
},
"path": [
{
"name": "f",
"kind": "function"
}
],
"namespace": "f"
}
]