[ { "description": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "This function returns the number plus two.", "position": { "start": { "line": 1, "column": 1, "offset": 0 }, "end": { "line": 1, "column": 43, "offset": 42 }, "indent": [] } } ], "position": { "start": { "line": 1, "column": 1, "offset": 0 }, "end": { "line": 1, "column": 43, "offset": 42 }, "indent": [] } } ], "position": { "start": { "line": 1, "column": 1, "offset": 0 }, "end": { "line": 1, "column": 43, "offset": 42 } } }, "tags": [ { "title": "param", "description": "the number", "lineNumber": 3, "type": { "type": "NameExpression", "name": "Number" }, "name": "a" }, { "title": "returns", "description": "numbertwo", "lineNumber": 4, "type": { "type": "NameExpression", "name": "Number" } }, { "title": "example", "description": "var result = returnTwo(4);\n// result is 6", "lineNumber": 5 } ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 9, "column": 3 } }, "context": { "loc": { "start": { "line": 10, "column": 0 }, "end": { "line": 13, "column": 1 } }, "code": "/**\n * This function returns the number plus two.\n *\n * @param {Number} a the number\n * @returns {Number} numbertwo\n * @example\n * var result = returnTwo(4);\n * // result is 6\n */\nfunction returnTwo(a) {\n // this returns a + 2\n return a + 2;\n}\n" }, "errors": [], "params": [ { "name": "a", "lineNumber": 3, "description": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "the number", "position": { "start": { "line": 1, "column": 1, "offset": 0 }, "end": { "line": 1, "column": 11, "offset": 10 }, "indent": [] } } ], "position": { "start": { "line": 1, "column": 1, "offset": 0 }, "end": { "line": 1, "column": 11, "offset": 10 }, "indent": [] } } ], "position": { "start": { "line": 1, "column": 1, "offset": 0 }, "end": { "line": 1, "column": 11, "offset": 10 } } }, "type": { "type": "NameExpression", "name": "Number" } } ], "returns": [ { "description": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "numbertwo", "position": { "start": { "line": 1, "column": 1, "offset": 0 }, "end": { "line": 1, "column": 10, "offset": 9 }, "indent": [] } } ], "position": { "start": { "line": 1, "column": 1, "offset": 0 }, "end": { "line": 1, "column": 10, "offset": 9 }, "indent": [] } } ], "position": { "start": { "line": 1, "column": 1, "offset": 0 }, "end": { "line": 1, "column": 10, "offset": 9 } } }, "type": { "type": "NameExpression", "name": "Number" } } ], "examples": [ { "description": "var result = returnTwo(4);\n// result is 6" } ], "name": "returnTwo", "kind": "function", "members": { "instance": [], "static": [] }, "path": [ { "name": "returnTwo", "kind": "function" } ], "namespace": "returnTwo" }, { "description": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "This function returns the number one.", "position": { "start": { "line": 1, "column": 1, "offset": 0 }, "end": { "line": 1, "column": 38, "offset": 37 }, "indent": [] } } ], "position": { "start": { "line": 1, "column": 1, "offset": 0 }, "end": { "line": 1, "column": 38, "offset": 37 }, "indent": [] } } ], "position": { "start": { "line": 1, "column": 1, "offset": 0 }, "end": { "line": 1, "column": 38, "offset": 37 } } }, "tags": [ { "title": "returns", "description": "numberone", "lineNumber": 2, "type": { "type": "NameExpression", "name": "Number" } } ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 4, "column": 3 } }, "context": { "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 8, "column": 2 } }, "code": "/**\n * This function returns the number one.\n * @returns {Number} numberone\n */\nmodule.exports = function () {\n // this returns 1\n return 1;\n};\n" }, "errors": [], "returns": [ { "description": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "numberone", "position": { "start": { "line": 1, "column": 1, "offset": 0 }, "end": { "line": 1, "column": 10, "offset": 9 }, "indent": [] } } ], "position": { "start": { "line": 1, "column": 1, "offset": 0 }, "end": { "line": 1, "column": 10, "offset": 9 }, "indent": [] } } ], "position": { "start": { "line": 1, "column": 1, "offset": 0 }, "end": { "line": 1, "column": 10, "offset": 9 } } }, "type": { "type": "NameExpression", "name": "Number" } } ], "name": "simple.input", "kind": "function", "members": { "instance": [], "static": [] }, "path": [ { "name": "simple.input", "kind": "function" } ], "namespace": "simple.input" } ]