documentation/test/fixture/document-exported.output.md.json
Erik Arvidsson 71922c7c8a Handle assignments in document exported (#544)
This improves detection of cases where we have:

```js
export const f = function () {};
export const o = { ... };
```

and similarly indirection using default/named.

```js
const f = function () {};
export {f};
```

Fixes #543
2016-09-19 12:53:18 -04:00

659 lines
12 KiB
JSON

{
"type": "root",
"children": [
{
"type": "html",
"value": "<!-- Generated by documentation.js. Update this documentation by updating the source code. -->"
},
{
"depth": 1,
"type": "heading",
"children": [
{
"type": "text",
"value": "z"
}
]
},
{
"depth": 2,
"type": "heading",
"children": [
{
"type": "text",
"value": "zMethod"
}
]
},
{
"depth": 1,
"type": "heading",
"children": [
{
"type": "text",
"value": "x"
}
]
},
{
"type": "strong",
"children": [
{
"type": "text",
"value": "Parameters"
}
]
},
{
"ordered": false,
"type": "list",
"children": [
{
"type": "listItem",
"children": [
{
"type": "paragraph",
"children": [
{
"type": "inlineCode",
"value": "yparam"
},
{
"type": "text",
"value": " "
},
{
"type": "text",
"value": " "
}
]
}
]
}
]
},
{
"depth": 1,
"type": "heading",
"children": [
{
"type": "text",
"value": "Class"
}
]
},
{
"depth": 2,
"type": "heading",
"children": [
{
"type": "text",
"value": "classMethod"
}
]
},
{
"depth": 2,
"type": "heading",
"children": [
{
"type": "text",
"value": "classGetter"
}
]
},
{
"depth": 2,
"type": "heading",
"children": [
{
"type": "text",
"value": "classSetter"
}
]
},
{
"type": "strong",
"children": [
{
"type": "text",
"value": "Parameters"
}
]
},
{
"ordered": false,
"type": "list",
"children": [
{
"type": "listItem",
"children": [
{
"type": "paragraph",
"children": [
{
"type": "inlineCode",
"value": "v"
},
{
"type": "text",
"value": " "
},
{
"type": "text",
"value": " "
}
]
}
]
}
]
},
{
"depth": 2,
"type": "heading",
"children": [
{
"type": "text",
"value": "staticMethod"
}
]
},
{
"depth": 2,
"type": "heading",
"children": [
{
"type": "text",
"value": "staticGetter"
}
]
},
{
"depth": 2,
"type": "heading",
"children": [
{
"type": "text",
"value": "staticSetter"
}
]
},
{
"type": "strong",
"children": [
{
"type": "text",
"value": "Parameters"
}
]
},
{
"ordered": false,
"type": "list",
"children": [
{
"type": "listItem",
"children": [
{
"type": "paragraph",
"children": [
{
"type": "inlineCode",
"value": "v"
},
{
"type": "text",
"value": " "
},
{
"type": "text",
"value": " "
}
]
}
]
}
]
},
{
"depth": 1,
"type": "heading",
"children": [
{
"type": "text",
"value": "T5"
}
]
},
{
"depth": 1,
"type": "heading",
"children": [
{
"type": "text",
"value": "y2Default"
}
]
},
{
"depth": 1,
"type": "heading",
"children": [
{
"type": "text",
"value": "y4"
}
]
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "Description of y3",
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 18,
"offset": 17
},
"indent": []
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 18,
"offset": 17
},
"indent": []
}
},
{
"type": "strong",
"children": [
{
"type": "text",
"value": "Parameters"
}
]
},
{
"ordered": false,
"type": "list",
"children": [
{
"type": "listItem",
"children": [
{
"type": "paragraph",
"children": [
{
"type": "inlineCode",
"value": "p"
},
{
"type": "text",
"value": " "
},
{
"type": "strong",
"children": [
{
"href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number",
"url": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number",
"type": "link",
"children": [
{
"type": "text",
"value": "number"
}
]
}
]
},
{
"type": "text",
"value": " "
}
]
}
]
}
]
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "Returns "
},
{
"type": "strong",
"children": [
{
"type": "text",
"value": "void"
}
]
},
{
"type": "text",
"value": " "
}
]
},
{
"depth": 1,
"type": "heading",
"children": [
{
"type": "text",
"value": "object"
}
]
},
{
"depth": 2,
"type": "heading",
"children": [
{
"type": "text",
"value": "prop"
}
]
},
{
"depth": 2,
"type": "heading",
"children": [
{
"type": "text",
"value": "func"
}
]
},
{
"depth": 1,
"type": "heading",
"children": [
{
"type": "text",
"value": "method"
}
]
},
{
"depth": 1,
"type": "heading",
"children": [
{
"type": "text",
"value": "getter"
}
]
},
{
"depth": 1,
"type": "heading",
"children": [
{
"type": "text",
"value": "setter"
}
]
},
{
"type": "strong",
"children": [
{
"type": "text",
"value": "Parameters"
}
]
},
{
"ordered": false,
"type": "list",
"children": [
{
"type": "listItem",
"children": [
{
"type": "paragraph",
"children": [
{
"type": "inlineCode",
"value": "v"
},
{
"type": "text",
"value": " "
},
{
"type": "text",
"value": " "
}
]
}
]
}
]
},
{
"depth": 1,
"type": "heading",
"children": [
{
"type": "text",
"value": "f1"
}
]
},
{
"depth": 1,
"type": "heading",
"children": [
{
"type": "text",
"value": "f3"
}
]
},
{
"depth": 1,
"type": "heading",
"children": [
{
"type": "text",
"value": "T"
}
]
},
{
"depth": 1,
"type": "heading",
"children": [
{
"type": "text",
"value": "T2"
}
]
},
{
"depth": 1,
"type": "heading",
"children": [
{
"type": "text",
"value": "T4"
}
]
},
{
"depth": 1,
"type": "heading",
"children": [
{
"type": "text",
"value": "f4"
}
]
},
{
"type": "strong",
"children": [
{
"type": "text",
"value": "Parameters"
}
]
},
{
"ordered": false,
"type": "list",
"children": [
{
"type": "listItem",
"children": [
{
"type": "paragraph",
"children": [
{
"type": "inlineCode",
"value": "x"
},
{
"type": "text",
"value": " "
},
{
"type": "strong",
"children": [
{
"type": "text",
"value": "X"
}
]
},
{
"type": "text",
"value": " "
}
]
}
]
}
]
},
{
"depth": 1,
"type": "heading",
"children": [
{
"type": "text",
"value": "f5"
}
]
},
{
"type": "strong",
"children": [
{
"type": "text",
"value": "Parameters"
}
]
},
{
"ordered": false,
"type": "list",
"children": [
{
"type": "listItem",
"children": [
{
"type": "paragraph",
"children": [
{
"type": "inlineCode",
"value": "y"
},
{
"type": "text",
"value": " "
},
{
"type": "strong",
"children": [
{
"type": "text",
"value": "Y"
}
]
},
{
"type": "text",
"value": " "
}
]
}
]
}
]
},
{
"depth": 1,
"type": "heading",
"children": [
{
"type": "text",
"value": "o1"
}
]
},
{
"depth": 1,
"type": "heading",
"children": [
{
"type": "text",
"value": "om1"
}
]
},
{
"depth": 1,
"type": "heading",
"children": [
{
"type": "text",
"value": "o2"
}
]
},
{
"depth": 1,
"type": "heading",
"children": [
{
"type": "text",
"value": "om2"
}
]
}
]
}