-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathexample.api.json
684 lines (684 loc) · 15.8 KB
/
example.api.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
{
"name": "",
"type": "RootDoc",
"members": [
{
"name": "WebdocParser",
"type": "ClassDoc",
"brief": "",
"description": ""
},
{
"name": "STAGE_AST_LIKE",
"type": "PropertyDoc",
"brief": "",
"description": "<p>The doctree-mod should run when the "members" are resolved to their actual AST parent. This\noccurs after {@code STAGE_BLANK}.</p>\n<p>Example:</p>\n<pre><code class=\"hljs language-js\"><span class=\"hljs-class\"><span class=\"hljs-keyword\">class</span> <span class=\"hljs-title\">DocumentedClass</span> </span>{\n <span class=\"hljs-function\"><span class=\"hljs-title\">constructor</span>(<span class=\"hljs-params\"></span>)</span> {\n <span class=\"hljs-comment\">/** <span class=\"hljs-doctag\">@member <span class=\"hljs-type\">{string) *\\/\n this.instanceProperty = "defaultValue";\n /** @member {string}</span> </span>*\\/\n DocumentedClass.instanceCount = DocumentedClass.instanceCount\n ? DocumentedClass.instanceCount + 1 : 1;\n }\n}\n</span></code></pre>\n<p>Before STAGE_AST_LIKE, the symbols <code>instanceProperty</code> and <code>instanceCount</code> will be a child of\n<code>DocumentedClass#constructor</code>. However, in STAGE_ASK_LIKE, they will be resolved as children of\n<code>DocumentedClass</code>.</p>"
},
{
"name": "STAGE_BLANK",
"type": "PropertyDoc",
"brief": "",
"description": "<p>The doctree-mod should run before all other mods.</p>"
},
{
"name": "STAGE_FINISHED",
"type": "PropertyDoc",
"brief": "",
"description": "<p>This stage occurs after all symbol-hierarchy operations are done. This is the best place for\ndoctree-mods that simply alter the doc content without using the parent/members relations.</p>\n<p>This occurs after {@code STAGE_SYMBOLS_DISCOVERED}.</p>"
},
{
"name": "STAGE_SYMBOLS_RESOLVED",
"type": "PropertyDoc",
"brief": "",
"description": "<p>The doctree-mod should run when symbols are placed in their documented parents. The\n<code>@modResolveMemberof</code> tag is resolved in this stage. This occurs after {@code STAGE_AST_LIKE}.</p>\n<p>Example:</p>\n<pre><code class=\"hljs language-js\"><span class=\"hljs-comment\">/**\n * <span class=\"hljs-doctag\">@namespace <span class=\"hljs-variable\">NS</span></span>\n *\\/\n\n/**\n * <span class=\"hljs-doctag\">@modResolveMemberof <span class=\"hljs-variable\">NS</span></span>\n *\\/\nclass API {}\n</span></code></pre>\n<p>Before {@code STAGE_SYMBOLS_RESOLVED}, the symbol {@code API} won't have a parent. However, in\n{@code STAGE_SYMBOLS_RESOLVED}, the symbol {@code API} will be a child of {@code NS}.</p>"
},
{
"name": "createHeadlessSymbol",
"type": "MethodDoc",
"scope": "instance",
"brief": "",
"description": ""
},
{
"name": "del",
"type": "MethodDoc",
"scope": "instance",
"brief": "",
"description": ""
},
{
"name": "logRecursive",
"type": "MethodDoc",
"scope": "instance",
"brief": "",
"description": ""
},
{
"name": "parse",
"type": "MethodDoc",
"scope": "instance",
"brief": "",
"description": ""
},
{
"name": "TagParser",
"type": "MethodDoc",
"scope": "instance",
"brief": "",
"description": ""
},
{
"name": "addChildDoc",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "addChildSymbol",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "addDoc",
"type": "FunctionDoc",
"brief": "<p>Adds a doc at its path in the doc-tree.</p>",
"description": ""
},
{
"name": "applyDefaultLangConfig",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "assemble",
"type": "FunctionDoc",
"brief": "<p>Assembles the symbol-metadata trees of each source-file into one, monolithic tree.</p>",
"description": ""
},
{
"name": "buildSymbolTree",
"type": "FunctionDoc",
"brief": "",
"description": "",
"members": [
{
"name": "enter",
"type": "MethodDoc",
"scope": "instance",
"brief": "",
"description": ""
},
{
"name": "exit",
"type": "MethodDoc",
"scope": "instance",
"brief": "",
"description": ""
}
]
},
{
"name": "childDoc",
"type": "FunctionDoc",
"brief": "<p>Searches for the doc named {@code lname} in the given scoped documentation.</p>",
"description": ""
},
{
"name": "clearRegistry",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "cloneDoc",
"type": "FunctionDoc",
"brief": "<p>Clones the doc without its children or parent.</p>",
"description": ""
},
{
"name": "cloneType",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "coalescePair",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "condition",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "createBlock",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "createDataType",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "createDoc",
"type": "FunctionDoc",
"brief": "<p>Creates a valid doc object with a name & type.</p>",
"description": ""
},
{
"name": "createRestDataType",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "createSimpleDocumentedType",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "declareParameter",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "discoverMembers",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "doc",
"type": "FunctionDoc",
"brief": "<p>Finds the doc whose relative path is {@code path} w.r.t {@code root}.</p>",
"description": ""
},
{
"name": "ensureDiscovered",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "exportTaffy",
"type": "FunctionDoc",
"brief": "<p>Exports a doc-tree in a TaffyDB database. The docs are inserted in a depth-first order.</p>",
"description": ""
},
{
"name": "extract",
"type": "FunctionDoc",
"brief": "",
"description": "<p>Extracts the documentation of the node, if one exists. This also handles the case where the node\nitself is a documentation comment.</p>"
},
{
"name": "extractDataValue",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "extractExtends",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "extractIdentifier",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "extractParams",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "extractSymbol",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "extractTypeFailsafe",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "filterComments",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "findSymbol",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "generateComparator",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "getIncludePattern",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "initLogger",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "isClass",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "isExternal",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "isInterface",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "isModule",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "isNamespace",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "isObligateLeaf",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "isParentThis",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "isProperty",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "loadTutorials",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "matchDataTypeClosure",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "memberofResolve",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "mergeParams",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "modAssembly",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "packageApi",
"type": "FunctionDoc",
"brief": "<p>Resolves each package's top-level API docs.</p>",
"description": ""
},
{
"name": "parse",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "parse",
"type": "FunctionDoc",
"brief": "<p>Parses the file(s) into a doc-tree. This consists of the following phases:</p>",
"description": "<ul>\n<li>Capture Phase: Documentation comments are extracted out of each file and assembled into\na temporary list of partial-doc trees.</li>\n<li>Transform Phase: Each file's partial-doc tree is transformed into docs and assembled in\nmonolithic doc-tree.</li>\n<li>Mod Phase: The "@memberof" tag is handled by moving docs to their final path;\n<this> member docs are moved to the appropriate scope.\nPlugins are allowed access to make any post-transform changes as well. Undocumented entities\nare removed from the doc-tree.</li>\n</ul>"
},
{
"name": "parseAbstract",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "parseCondition",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "parseCopyright",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "parseDeprecated",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "parseEvent",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "parseFires",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "parseImplements",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "parseInstance",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "parseLicense",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "parsePrivate",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "parseProperty",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "parsePublic",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "parseScope",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "parseSince",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "parseStepType",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "parseTodo",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "parseType",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "parseTypedDescription",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "query",
"type": "FunctionDoc",
"brief": "",
"description": "<p>Runs a query in the document tree and returns the matching document, according to the\nDocument Path Langugage expression {@code query}.</p>"
},
{
"name": "queueTargets",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "readDoctree",
"type": "FunctionDoc",
"brief": "",
"description": "<p>Imports the doctree from the JSON format string-data. This will not recover all of the\ninformation in the original doctree.</p>"
},
{
"name": "registerDoctreeMod",
"type": "FunctionDoc",
"brief": "<p>Registers the doctree-mod so that it will run when {@code parse} is invoked.</p>",
"description": "<p>NOTE: This is an internal API. If you're writing a plugin, use the\n{@code Parser#installDoctreeMod} API instead.</p>\n<p>HINT: If your doctree-mod isn't affected by the relations b/w different symbols, then you should\npick {@code STAGE_FINISHED}.</p>"
},
{
"name": "registerObjectPropertyVariables",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "registerParameters",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "registerValidator",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "registerWebdocParser",
"type": "FunctionDoc",
"brief": "",
"description": "",
"members": [
{
"name": "installPlugin",
"type": "MethodDoc",
"scope": "instance",
"brief": "",
"description": ""
}
]
},
{
"name": "resolveAssignedMembersRecursive",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "resolveConfigurator",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "resolvedThis",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "resolveFlowDataType",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "resolveLinkArray",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "resolveRelated",
"type": "FunctionDoc",
"brief": "",
"description": "<ul>\n<li>\n<p>Resolves all docs listed in the "extends", "implements", "mixes". This prevent redundant\nsearches to extended/implemented/mixed symbols.</p>\n</li>\n<li>\n<p>Replaces the "default" scopes for properties with a good guess. (The @property tag parser puts\n"default" scope on the PropertyDocs it creates)</p>\n</li>\n<li>\n<p>Brings down any methods/properties coming from parent classes & mixins. Adds the implementation\nproperty to methods/properties that come from interfaces.</p>\n</li>\n</ul>"
},
{
"name": "resolveReturn",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "resolveRootObject",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "resolveToObject",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "restoreDoc",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "searchExtendedClasses",
"type": "FunctionDoc",
"brief": "<p>Finds all the symbols that are extended by {@code doc}.</p>",
"description": ""
},
{
"name": "searchImplementedInterfaces",
"type": "FunctionDoc",
"brief": "<p>Finds all the symbols that are implemented by {@code doc}.</p>",
"description": ""
},
{
"name": "sources",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "stepInstanceMember",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "stepRMember",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "symbolToDoc",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "transformRecursive",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "traverse",
"type": "FunctionDoc",
"brief": "<p>Preorder traversal of all the docs</p>",
"description": ""
},
{
"name": "updateScope",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "updateStage",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "validateParameters",
"type": "FunctionDoc",
"brief": "",
"description": ""
},
{
"name": "writeDoctree",
"type": "FunctionDoc",
"brief": "<p>Exports the doctree to a JSON string.</p>",
"description": ""
}
]
}