mirror of
https://github.com/documentationjs/documentation.git
synced 2026-01-18 14:17:30 +00:00
136 lines
2.7 KiB
JSON
136 lines
2.7 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
|
|
}
|
|
},
|
|
"file": "fixture/simple.input.js",
|
|
"code": "module.exports = function () {\n // this returns 1\n return 1;\n};"
|
|
},
|
|
"returns": [
|
|
{
|
|
"title": "returns",
|
|
"description": "numberone",
|
|
"lineNumber": 2,
|
|
"type": {
|
|
"type": "NameExpression",
|
|
"name": "Number"
|
|
}
|
|
}
|
|
],
|
|
"name": "exports",
|
|
"kind": "function",
|
|
"memberof": "module",
|
|
"scope": "static"
|
|
},
|
|
{
|
|
"description": "This function returns the number plus two.",
|
|
"tags": [
|
|
{
|
|
"title": "param",
|
|
"description": "the number",
|
|
"lineNumber": 3,
|
|
"type": {
|
|
"type": "NameExpression",
|
|
"name": "Number"
|
|
},
|
|
"name": "a"
|
|
},
|
|
{
|
|
"title": "returns",
|
|
"description": "numbertwo",
|
|
"lineNumber": 4,
|
|
"type": {
|
|
"type": "NameExpression",
|
|
"name": "Number"
|
|
}
|
|
},
|
|
{
|
|
"title": "example",
|
|
"description": "var result = returnTwo(4);\n// result is 6",
|
|
"lineNumber": 5
|
|
}
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 9,
|
|
"column": 3
|
|
}
|
|
},
|
|
"context": {
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 1
|
|
}
|
|
},
|
|
"file": "fixture/simple-two.input.js",
|
|
"code": "function returnTwo(a) {\n // this returns a + 2\n return a + 2;\n}"
|
|
},
|
|
"params": [
|
|
{
|
|
"title": "param",
|
|
"description": "the number",
|
|
"lineNumber": 3,
|
|
"type": {
|
|
"type": "NameExpression",
|
|
"name": "Number"
|
|
},
|
|
"name": "a"
|
|
}
|
|
],
|
|
"returns": [
|
|
{
|
|
"title": "returns",
|
|
"description": "numbertwo",
|
|
"lineNumber": 4,
|
|
"type": {
|
|
"type": "NameExpression",
|
|
"name": "Number"
|
|
}
|
|
}
|
|
],
|
|
"examples": [
|
|
"var result = returnTwo(4);\n// result is 6"
|
|
],
|
|
"name": "returnTwo",
|
|
"kind": "function"
|
|
}
|
|
] |