documentation/test/fixture/optional.output.md.json
Tom MacWright 70cc7d0718 Infer Flow type aliases into typedefs. Fixes #227
Given the `type` tag introduced with Flow, this can infer
a typedef statement, as well as infer its potentially
nested properties and their types.

This also includes

* Refactor of Markdown AST generation that fixes #228
* Refactor of nest.js to handle multi-level nesting
2015-11-04 11:25:32 -05:00

216 lines
5.1 KiB
JSON

{
"type": "root",
"children": [
{
"depth": 1,
"type": "heading",
"children": [
{
"type": "text",
"value": "Address6"
}
]
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "Represents an IPv6 address",
"position": {
"start": {
"line": 1,
"column": 1
},
"end": {
"line": 1,
"column": 27
},
"indent": []
}
}
],
"position": {
"start": {
"line": 1,
"column": 1
},
"end": {
"line": 1,
"column": 27
},
"indent": []
}
},
{
"type": "strong",
"children": [
{
"type": "text",
"value": "Parameters"
}
]
},
{
"ordered": false,
"type": "list",
"children": [
{
"type": "listItem",
"children": [
{
"type": "paragraph",
"children": [
{
"type": "inlineCode",
"value": "address"
},
{
"type": "text",
"value": " "
},
{
"type": "strong",
"children": [
{
"type": "text",
"value": "string"
}
]
},
{
"type": "text",
"value": " "
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "An IPv6 address string",
"position": {
"start": {
"line": 1,
"column": 1
},
"end": {
"line": 1,
"column": 23
},
"indent": []
}
}
],
"position": {
"start": {
"line": 1,
"column": 1
},
"end": {
"line": 1,
"column": 23
},
"indent": []
}
}
]
}
]
},
{
"type": "listItem",
"children": [
{
"type": "paragraph",
"children": [
{
"type": "inlineCode",
"value": "groups"
},
{
"type": "text",
"value": " "
},
{
"type": "strong",
"children": [
{
"type": "text",
"value": "[number]"
}
]
},
{
"type": "text",
"value": " "
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "How many octets to parse",
"position": {
"start": {
"line": 1,
"column": 1
},
"end": {
"line": 1,
"column": 25
},
"indent": []
}
}
],
"position": {
"start": {
"line": 1,
"column": 1
},
"end": {
"line": 1,
"column": 25
},
"indent": []
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": " (optional, default "
},
{
"type": "inlineCode",
"value": "8"
},
{
"type": "text",
"value": ")"
}
]
}
]
}
]
}
]
},
{
"type": "strong",
"children": [
{
"type": "text",
"value": "Examples"
}
]
},
{
"lang": "javascript",
"type": "code",
"value": "var address = new Address6('2001::/32');"
}
]
}