documentation/test/fixture/alias.output.json
John Firebaugh 08d6dc21bd Replace markdown strings with parsed ASTs
This eliminates the need for formatInlineTags and jsdoc-inline-lex, and simplifies the implementation of HTML themes.
2016-03-28 13:19:30 -07:00

121 lines
2.5 KiB
JSON

[
{
"description": {
"type": "root",
"children": [
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "This is a method that has an alias tag: so it should\nbe referred to as nixon, but should still have inference.",
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 2,
"column": 58,
"offset": 110
},
"indent": [
1
]
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 2,
"column": 58,
"offset": 110
},
"indent": [
1
]
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 2,
"column": 58,
"offset": 110
}
}
},
"tags": [
{
"title": "alias",
"description": null,
"lineNumber": 3,
"name": "nixon"
}
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 3
}
},
"context": {
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 8,
"column": 1
}
},
"code": "/**\n * This is a method that has an alias tag: so it should\n * be referred to as nixon, but should still have inference.\n * @alias nixon\n */\nfunction dewey(a: number): number {\n return a;\n}\n"
},
"errors": [],
"alias": "nixon",
"name": "nixon",
"kind": "function",
"params": [
{
"title": "param",
"name": "a",
"lineNumber": 6,
"type": {
"type": "NameExpression",
"name": "number"
}
}
],
"returns": [
{
"type": {
"type": "NameExpression",
"name": "number"
}
}
],
"members": {
"instance": [],
"static": []
},
"path": [
"nixon"
]
}
]