|
1 | 1 | var getParent = require("bit-docs-process-tags/get-parent"),
|
2 | 2 | tnd = require("bit-docs-type-annotate").typeNameDescription,
|
3 | 3 | updateNameWithScope = require("../lib/updateNameAndParentWithScope");
|
4 |
| - /** |
5 |
| - * @constructor documentjs.tags.property @property |
6 |
| - * @parent documentjs.tags |
7 |
| - * |
8 |
| - * Documents a property of a parent object. |
9 |
| - * |
10 |
| - * @signature `@property {TYPE} NAME [TITLE]` Documents a |
11 |
| - * property named `NAME` of type `{TYPE}`. |
12 |
| - * |
13 |
| - * @codestart |
14 |
| - * /** |
15 |
| - * * @@property {Number} delay |
16 |
| - * * Sets the delay in milliseconds between an ajax request is made and |
17 |
| - * * the success and complete handlers are called. This only sets |
18 |
| - * * functional fixtures. By default, the delay is 200ms. |
19 |
| - * *| |
20 |
| - * $.fixture.delay = 200 |
21 |
| - * @codeend |
22 |
| - * |
23 |
| - * @param {documentjs.typeExpression} [TYPE] An optional type like `{Object}`. |
24 |
| - * @param {documentjs.nameExpression} [NAME] The name of the property. This maybe infered from the |
25 |
| - * code block immediately following the comment. |
26 |
| - * @param {STRING} [TITLE] The display title of the property. |
27 |
| - * |
28 |
| - * @signature `["']?(\w+)["']?\s*[:=]\s*` |
29 |
| - * |
30 |
| - * If code matches the above regular expression and is not a function, it is |
31 |
| - * automatically assumed to be a property. |
32 |
| - * |
33 |
| - * |
34 |
| - */ |
| 4 | + |
| 5 | +/** |
| 6 | + * @module {bit-docs-process-tags/tag} bit-docs-js/tags/property @property |
| 7 | + * @parent bit-docs-js/tags |
| 8 | + * |
| 9 | + * Documents a property of a parent object. |
| 10 | + * |
| 11 | + * @signature `@property {TYPE} NAME [TITLE]` Documents a property named `NAME` |
| 12 | + * of type `{TYPE}`. |
| 13 | + * |
| 14 | + * @codestart |
| 15 | + * /** |
| 16 | + * * @@property {Number} delay |
| 17 | + * * Sets the delay in milliseconds between an ajax request is made and |
| 18 | + * * the success and complete handlers are called. This only sets |
| 19 | + * * functional fixtures. By default, the delay is 200ms. |
| 20 | + * *| |
| 21 | + * $.fixture.delay = 200 |
| 22 | + * @codeend |
| 23 | + * |
| 24 | + * @param {bit-docs-js/tags/typeExpression} [TYPE] An optional type like `{Object}`. |
| 25 | + * @param {bit-docs-js/tags/nameExpression} [NAME] The name of the property. |
| 26 | + * This maybe inferred from the code block immediately following the comment. |
| 27 | + * @param {STRING} [TITLE] The display title of the property. |
| 28 | + * |
| 29 | + * @signature `["']?(\w+)["']?\s*[:=]\s*` |
| 30 | + * |
| 31 | + * If code matches the above regular expression and is not a function, it is |
| 32 | + * automatically assumed to be a property. |
| 33 | + */ |
35 | 34 | module.exports = {
|
36 | 35 | codeMatch: function( code ) {
|
37 | 36 | return code.match(/["']?(\w+)["']?\s*[:=]\s*/) && !code.match(/["']?(\w+)["']?\s*[:=]\s*function\(([^\)]*)/);
|
|
0 commit comments