UNPKG

1.53 kBJavaScriptView Raw
1var __extends = (this && this.__extends) || (function () {
2 var extendStatics = function (d, b) {
3 extendStatics = Object.setPrototypeOf ||
4 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5 function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6 return extendStatics(d, b);
7 };
8 return function (d, b) {
9 extendStatics(d, b);
10 function __() { this.constructor = d; }
11 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12 };
13})();
14import { DocNodeKind } from './DocNode';
15import { DocNodeContainer } from './DocNodeContainer';
16/**
17 * Represents a paragraph of text, similar to a `<p>` element in HTML.
18 * Like CommonMark, the TSDoc syntax uses blank lines to delineate paragraphs
19 * instead of explicitly notating them.
20 */
21var DocParagraph = /** @class */ (function (_super) {
22 __extends(DocParagraph, _super);
23 /**
24 * Don't call this directly. Instead use {@link TSDocParser}
25 * @internal
26 */
27 function DocParagraph(parameters, childNodes) {
28 return _super.call(this, parameters, childNodes) || this;
29 }
30 Object.defineProperty(DocParagraph.prototype, "kind", {
31 /** @override */
32 get: function () {
33 return DocNodeKind.Paragraph;
34 },
35 enumerable: false,
36 configurable: true
37 });
38 return DocParagraph;
39}(DocNodeContainer));
40export { DocParagraph };
41//# sourceMappingURL=DocParagraph.js.map
\No newline at end of file