documentation/test/fixture/simple.output.github.json
Tom MacWright d7f06fa5c4 Store commentLineNumber on errors. Fixes #159
cc @jfirebaugh for the review
2015-10-06 16:23:22 -04:00

70 lines
1.4 KiB
JSON

[
{
"description": "This function returns the number one.",
"tags": [
{
"title": "returns",
"description": "numberone",
"lineNumber": 2,
"type": {
"type": "NameExpression",
"name": "Number"
}
}
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 4,
"column": 3
}
},
"context": {
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 8,
"column": 2
}
},
"code": "/**\n * This function returns the number one.\n * @returns {Number} numberone\n */\nmodule.exports = function () {\n // this returns 1\n return 1;\n};\n",
"path": "test/fixture/simple.input.js",
"github": "[github]"
},
"errors": [
{
"message": "memberof reference to module not found",
"commentLineNumber": 0
}
],
"returns": [
{
"title": "returns",
"description": "numberone",
"lineNumber": 2,
"type": {
"type": "NameExpression",
"name": "Number"
}
}
],
"name": "exports",
"kind": "function",
"memberof": "module",
"scope": "static",
"members": {
"instance": [],
"static": []
},
"events": [],
"path": [
"exports"
]
}
]