1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.DocNode = exports.DocNodeKind = void 0;
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | var DocNodeKind;
|
13 | (function (DocNodeKind) {
|
14 | DocNodeKind["Block"] = "Block";
|
15 | DocNodeKind["BlockTag"] = "BlockTag";
|
16 | DocNodeKind["Excerpt"] = "Excerpt";
|
17 | DocNodeKind["FencedCode"] = "FencedCode";
|
18 | DocNodeKind["CodeSpan"] = "CodeSpan";
|
19 | DocNodeKind["Comment"] = "Comment";
|
20 | DocNodeKind["DeclarationReference"] = "DeclarationReference";
|
21 | DocNodeKind["ErrorText"] = "ErrorText";
|
22 | DocNodeKind["EscapedText"] = "EscapedText";
|
23 | DocNodeKind["HtmlAttribute"] = "HtmlAttribute";
|
24 | DocNodeKind["HtmlEndTag"] = "HtmlEndTag";
|
25 | DocNodeKind["HtmlStartTag"] = "HtmlStartTag";
|
26 | DocNodeKind["InheritDocTag"] = "InheritDocTag";
|
27 | DocNodeKind["InlineTag"] = "InlineTag";
|
28 | DocNodeKind["LinkTag"] = "LinkTag";
|
29 | DocNodeKind["MemberIdentifier"] = "MemberIdentifier";
|
30 | DocNodeKind["MemberReference"] = "MemberReference";
|
31 | DocNodeKind["MemberSelector"] = "MemberSelector";
|
32 | DocNodeKind["MemberSymbol"] = "MemberSymbol";
|
33 | DocNodeKind["Paragraph"] = "Paragraph";
|
34 | DocNodeKind["ParamBlock"] = "ParamBlock";
|
35 | DocNodeKind["ParamCollection"] = "ParamCollection";
|
36 | DocNodeKind["PlainText"] = "PlainText";
|
37 | DocNodeKind["Section"] = "Section";
|
38 | DocNodeKind["SoftBreak"] = "SoftBreak";
|
39 | })(DocNodeKind = exports.DocNodeKind || (exports.DocNodeKind = {}));
|
40 |
|
41 |
|
42 |
|
43 | var DocNode = (function () {
|
44 | function DocNode(parameters) {
|
45 | this.configuration = parameters.configuration;
|
46 | }
|
47 | |
48 |
|
49 |
|
50 |
|
51 |
|
52 | DocNode.prototype.getChildNodes = function () {
|
53 |
|
54 | this.configuration.docNodeManager.throwIfNotRegisteredKind(this.kind);
|
55 | return this.onGetChildNodes().filter(function (x) { return x !== undefined; });
|
56 | };
|
57 | |
58 |
|
59 |
|
60 |
|
61 | DocNode.prototype.onGetChildNodes = function () {
|
62 | return [];
|
63 | };
|
64 | |
65 |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 |
|
71 |
|
72 |
|
73 | DocNode.isParsedParameters = function (parameters) {
|
74 | return parameters.parsed === true;
|
75 | };
|
76 | return DocNode;
|
77 | }());
|
78 | exports.DocNode = DocNode;
|
79 |
|
\ | No newline at end of file |