documentation/test/fixture/partial-default.output.json
Tom MacWright 33552c6e8a Fix type merging. Fixes #233
Some params cannot be identified with only param.name. This
changes the algorithm to transform parameters into doc objects
first, and then using the value of doc.name, which is defined
even for parameters with default values.
2015-11-09 12:51:15 -05:00

82 lines
1.5 KiB
JSON

[
{
"description": "Number",
"tags": [
{
"title": "param",
"description": "an argument",
"lineNumber": 3,
"type": {
"type": "NameExpression",
"name": "number"
},
"name": "x"
},
{
"title": "returns",
"description": "some",
"lineNumber": 5,
"type": {
"type": "NameExpression",
"name": "number"
}
}
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 7,
"column": 3
}
},
"context": {
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 8,
"column": 37
}
},
"code": "/**\n * Number\n *\n * @param {number} x an argument\n *\n * @returns {number} some\n */\nexport const myfunc = (x = 123) => x;\n"
},
"errors": [],
"params": [
{
"title": "param",
"description": "an argument",
"lineNumber": 3,
"type": {
"type": "NameExpression",
"name": "number"
},
"name": "x"
}
],
"returns": [
{
"title": "returns",
"description": "some",
"lineNumber": 5,
"type": {
"type": "NameExpression",
"name": "number"
}
}
],
"name": "myfunc",
"kind": "constant",
"members": {
"instance": [],
"static": []
},
"path": [
"myfunc"
]
}
]