UNPKG

3.79 kBJavaScriptView Raw
1"use strict";
2var __extends = (this && this.__extends) || (function () {
3 var extendStatics = function (d, b) {
4 extendStatics = Object.setPrototypeOf ||
5 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6 function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
7 return extendStatics(d, b);
8 };
9 return function (d, b) {
10 extendStatics(d, b);
11 function __() { this.constructor = d; }
12 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13 };
14})();
15Object.defineProperty(exports, "__esModule", { value: true });
16exports.StandardModifierTagSet = void 0;
17var ModifierTagSet_1 = require("./ModifierTagSet");
18var StandardTags_1 = require("./StandardTags");
19/**
20 * Extends the ModifierTagSet base class with getters for modifiers that
21 * are part of the standardized core tags for TSDoc.
22 */
23var StandardModifierTagSet = /** @class */ (function (_super) {
24 __extends(StandardModifierTagSet, _super);
25 function StandardModifierTagSet() {
26 return _super !== null && _super.apply(this, arguments) || this;
27 }
28 /**
29 * Returns true if the `@alpha` modifier tag was specified.
30 */
31 StandardModifierTagSet.prototype.isAlpha = function () {
32 return this.hasTag(StandardTags_1.StandardTags.alpha);
33 };
34 /**
35 * Returns true if the `@beta` modifier tag was specified.
36 */
37 StandardModifierTagSet.prototype.isBeta = function () {
38 return this.hasTag(StandardTags_1.StandardTags.beta);
39 };
40 /**
41 * Returns true if the `@eventProperty` modifier tag was specified.
42 */
43 StandardModifierTagSet.prototype.isEventProperty = function () {
44 return this.hasTag(StandardTags_1.StandardTags.eventProperty);
45 };
46 /**
47 * Returns true if the `@experimental` modifier tag was specified.
48 */
49 StandardModifierTagSet.prototype.isExperimental = function () {
50 return this.hasTag(StandardTags_1.StandardTags.experimental);
51 };
52 /**
53 * Returns true if the `@internal` modifier tag was specified.
54 */
55 StandardModifierTagSet.prototype.isInternal = function () {
56 return this.hasTag(StandardTags_1.StandardTags.internal);
57 };
58 /**
59 * Returns true if the `@override` modifier tag was specified.
60 */
61 StandardModifierTagSet.prototype.isOverride = function () {
62 return this.hasTag(StandardTags_1.StandardTags.override);
63 };
64 /**
65 * Returns true if the `@packageDocumentation` modifier tag was specified.
66 */
67 StandardModifierTagSet.prototype.isPackageDocumentation = function () {
68 return this.hasTag(StandardTags_1.StandardTags.packageDocumentation);
69 };
70 /**
71 * Returns true if the `@public` modifier tag was specified.
72 */
73 StandardModifierTagSet.prototype.isPublic = function () {
74 return this.hasTag(StandardTags_1.StandardTags.public);
75 };
76 /**
77 * Returns true if the `@readonly` modifier tag was specified.
78 */
79 StandardModifierTagSet.prototype.isReadonly = function () {
80 return this.hasTag(StandardTags_1.StandardTags.readonly);
81 };
82 /**
83 * Returns true if the `@sealed` modifier tag was specified.
84 */
85 StandardModifierTagSet.prototype.isSealed = function () {
86 return this.hasTag(StandardTags_1.StandardTags.sealed);
87 };
88 /**
89 * Returns true if the `@virtual` modifier tag was specified.
90 */
91 StandardModifierTagSet.prototype.isVirtual = function () {
92 return this.hasTag(StandardTags_1.StandardTags.virtual);
93 };
94 return StandardModifierTagSet;
95}(ModifierTagSet_1.ModifierTagSet));
96exports.StandardModifierTagSet = StandardModifierTagSet;
97//# sourceMappingURL=StandardModifierTagSet.js.map
\No newline at end of file