documentation/test/fixture/typedef.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

254 lines
5.4 KiB
JSON

[
{
"description": {
"type": "root",
"children": [
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "A type definition.",
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 19,
"offset": 18
},
"indent": []
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 19,
"offset": 18
},
"indent": []
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 19,
"offset": 18
}
}
},
"tags": [
{
"title": "name",
"description": null,
"lineNumber": 2,
"name": "MyType"
},
{
"title": "typedef",
"description": null,
"lineNumber": 3,
"type": {
"type": "NameExpression",
"name": "Object"
},
"name": "MyType"
},
{
"title": "property",
"description": "one property",
"lineNumber": 4,
"type": {
"type": "NameExpression",
"name": "number"
},
"name": "prop1"
},
{
"title": "property",
"description": "another property",
"lineNumber": 5,
"type": {
"type": "NameExpression",
"name": "string"
},
"name": "prop2"
}
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 7,
"column": 3
}
},
"context": {
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 9,
"column": 0
}
}
},
"errors": [],
"name": "MyType",
"typedef": {
"name": "MyType",
"type": {
"type": "NameExpression",
"name": "Object"
}
},
"properties": [
{
"name": "prop1",
"lineNumber": 4,
"description": {
"type": "root",
"children": [
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "one property",
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 13,
"offset": 12
},
"indent": []
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 13,
"offset": 12
},
"indent": []
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 13,
"offset": 12
}
}
},
"type": {
"type": "NameExpression",
"name": "number"
}
},
{
"name": "prop2",
"lineNumber": 5,
"description": {
"type": "root",
"children": [
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "another property",
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 17,
"offset": 16
},
"indent": []
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 17,
"offset": 16
},
"indent": []
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 17,
"offset": 16
}
}
},
"type": {
"type": "NameExpression",
"name": "string"
}
}
],
"members": {
"instance": [],
"static": []
},
"path": [
"MyType"
]
}
]