documentation/test/fixture/factory.output.json
Tom MacWright 3da1ff6dd0 Source-sorting by default (#410)
* Source-sorting by default

Many changes

* Uses a new version of module-deps that exposes a sort key
  we use to sort documentation.
* Adds inference for methods in objects
* Groups events into a separate comment property

* Add jsdoc property. Refs https://github.com/documentationjs/documentation/pull/388#issuecomment-215791547

* Namespaces and paths

* More powerful paths: paths now include name, kind, and scope
* comments now include a 'namespace' property with a formatted namespace

* Fix tests

* Re-ignore fonts

* Nix sourceKey from output

* Pin dependency versions

* Fix module-deps-sortable ref

* Update tests for right deps
2016-04-29 18:09:52 -04:00

334 lines
7.2 KiB
JSON

[
{
"description": {
"type": "root",
"children": [
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "an area chart generator",
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 24,
"offset": 23
},
"indent": []
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 24,
"offset": 23
},
"indent": []
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 24,
"offset": 23
}
}
},
"tags": [
{
"title": "returns",
"description": "chart",
"lineNumber": 2,
"type": {
"type": "NameExpression",
"name": "area"
}
}
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 4,
"column": 3
}
},
"context": {
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 21,
"column": 2
}
},
"code": "/**\n * an area chart generator\n * @returns {area} chart\n */\nvar area = function() {\n\n /**\n * @class area\n */\n var chart = function(selection) {\n };\n\n /**\n * Sets the chart data.\n * @function\n */\n chart.data = function(_) {\n };\n\n return chart;\n};\n"
},
"errors": [],
"returns": [
{
"description": {
"type": "root",
"children": [
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "chart",
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 6,
"offset": 5
},
"indent": []
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 6,
"offset": 5
},
"indent": []
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 6,
"offset": 5
}
}
},
"type": {
"type": "NameExpression",
"name": "area"
}
}
],
"name": "area",
"kind": "function",
"members": {
"instance": [],
"static": []
},
"path": [
{
"name": "area",
"kind": "function"
}
],
"namespace": "area"
},
{
"description": "",
"tags": [
{
"title": "class",
"description": null,
"lineNumber": 1,
"type": null,
"name": "area"
}
],
"loc": {
"start": {
"line": 7,
"column": 2
},
"end": {
"line": 9,
"column": 5
}
},
"context": {
"loc": {
"start": {
"line": 10,
"column": 2
},
"end": {
"line": 11,
"column": 4
}
},
"code": "/**\n * an area chart generator\n * @returns {area} chart\n */\nvar area = function() {\n\n /**\n * @class area\n */\n var chart = function(selection) {\n };\n\n /**\n * Sets the chart data.\n * @function\n */\n chart.data = function(_) {\n };\n\n return chart;\n};\n"
},
"errors": [],
"kind": "class",
"name": "area",
"params": [
{
"title": "param",
"name": "selection",
"lineNumber": 10
}
],
"members": {
"instance": [],
"static": []
},
"path": [
{
"name": "area",
"kind": "class"
}
],
"namespace": "area"
},
{
"description": {
"type": "root",
"children": [
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "Sets the chart data.",
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 21,
"offset": 20
},
"indent": []
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 21,
"offset": 20
},
"indent": []
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 21,
"offset": 20
}
}
},
"tags": [
{
"title": "function",
"description": null,
"lineNumber": 2,
"name": null
}
],
"loc": {
"start": {
"line": 13,
"column": 2
},
"end": {
"line": 16,
"column": 5
}
},
"context": {
"loc": {
"start": {
"line": 17,
"column": 2
},
"end": {
"line": 18,
"column": 4
}
},
"code": "/**\n * an area chart generator\n * @returns {area} chart\n */\nvar area = function() {\n\n /**\n * @class area\n */\n var chart = function(selection) {\n };\n\n /**\n * Sets the chart data.\n * @function\n */\n chart.data = function(_) {\n };\n\n return chart;\n};\n"
},
"errors": [
{
"message": "@memberof reference to chart not found",
"commentLineNumber": 0
}
],
"kind": "function",
"name": "data",
"params": [
{
"title": "param",
"name": "_",
"lineNumber": 17
}
],
"memberof": "chart",
"scope": "static",
"members": {
"instance": [],
"static": []
},
"path": [
{
"name": "data",
"kind": "function",
"scope": "static"
}
],
"namespace": ".data"
}
]