UNPKG

3.47 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 { ModifierTagSet } from './ModifierTagSet';
15import { StandardTags } from './StandardTags';
16/**
17 * Extends the ModifierTagSet base class with getters for modifiers that
18 * are part of the standardized core tags for TSDoc.
19 */
20var StandardModifierTagSet = /** @class */ (function (_super) {
21 __extends(StandardModifierTagSet, _super);
22 function StandardModifierTagSet() {
23 return _super !== null && _super.apply(this, arguments) || this;
24 }
25 /**
26 * Returns true if the `@alpha` modifier tag was specified.
27 */
28 StandardModifierTagSet.prototype.isAlpha = function () {
29 return this.hasTag(StandardTags.alpha);
30 };
31 /**
32 * Returns true if the `@beta` modifier tag was specified.
33 */
34 StandardModifierTagSet.prototype.isBeta = function () {
35 return this.hasTag(StandardTags.beta);
36 };
37 /**
38 * Returns true if the `@eventProperty` modifier tag was specified.
39 */
40 StandardModifierTagSet.prototype.isEventProperty = function () {
41 return this.hasTag(StandardTags.eventProperty);
42 };
43 /**
44 * Returns true if the `@experimental` modifier tag was specified.
45 */
46 StandardModifierTagSet.prototype.isExperimental = function () {
47 return this.hasTag(StandardTags.experimental);
48 };
49 /**
50 * Returns true if the `@internal` modifier tag was specified.
51 */
52 StandardModifierTagSet.prototype.isInternal = function () {
53 return this.hasTag(StandardTags.internal);
54 };
55 /**
56 * Returns true if the `@override` modifier tag was specified.
57 */
58 StandardModifierTagSet.prototype.isOverride = function () {
59 return this.hasTag(StandardTags.override);
60 };
61 /**
62 * Returns true if the `@packageDocumentation` modifier tag was specified.
63 */
64 StandardModifierTagSet.prototype.isPackageDocumentation = function () {
65 return this.hasTag(StandardTags.packageDocumentation);
66 };
67 /**
68 * Returns true if the `@public` modifier tag was specified.
69 */
70 StandardModifierTagSet.prototype.isPublic = function () {
71 return this.hasTag(StandardTags.public);
72 };
73 /**
74 * Returns true if the `@readonly` modifier tag was specified.
75 */
76 StandardModifierTagSet.prototype.isReadonly = function () {
77 return this.hasTag(StandardTags.readonly);
78 };
79 /**
80 * Returns true if the `@sealed` modifier tag was specified.
81 */
82 StandardModifierTagSet.prototype.isSealed = function () {
83 return this.hasTag(StandardTags.sealed);
84 };
85 /**
86 * Returns true if the `@virtual` modifier tag was specified.
87 */
88 StandardModifierTagSet.prototype.isVirtual = function () {
89 return this.hasTag(StandardTags.virtual);
90 };
91 return StandardModifierTagSet;
92}(ModifierTagSet));
93export { StandardModifierTagSet };
94//# sourceMappingURL=StandardModifierTagSet.js.map
\No newline at end of file