documentation/test/fixture/simple.output.json
Tom MacWright 84f09f9953 More intense kind inference
Can now infer

* function
* constant
* class

Remove unused var and inapplicable comment

Use strict, use a string to run functions not legal in strict mode

Make output fancier and better.

Use difflet, channel rage

Normalize html / json output

Omit json from test output

Fixup output
2015-04-13 17:57:54 -07:00

58 lines
1.1 KiB
JSON

[
{
"description": "This function returns the number one.",
"tags": [
{
"title": "returns",
"description": "numberone",
"type": {
"type": "NameExpression",
"name": "Number"
}
},
{
"title": "name",
"name": "exports"
},
{
"title": "kind",
"kind": "function"
},
{
"title": "memberof",
"description": "module"
},
{
"title": "static"
}
],
"context": {
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 8,
"column": 2
}
},
"file": "fixture/simple.input.js",
"code": "module.exports = function () {\n // this returns 1\n return 1;\n};"
},
"returns": [
{
"title": "returns",
"description": "numberone",
"type": {
"type": "NameExpression",
"name": "Number"
}
}
],
"name": "exports",
"kind": "function",
"memberof": "module",
"scope": "static"
}
]