UNPKG

@microsoft/tsdoc

Version:

A parser for the TypeScript doc comment syntax

94 lines 3.47 kB
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); import { ModifierTagSet } from './ModifierTagSet'; import { StandardTags } from './StandardTags'; /** * Extends the ModifierTagSet base class with getters for modifiers that * are part of the standardized core tags for TSDoc. */ var StandardModifierTagSet = /** @class */ (function (_super) { __extends(StandardModifierTagSet, _super); function StandardModifierTagSet() { return _super !== null && _super.apply(this, arguments) || this; } /** * Returns true if the `@alpha` modifier tag was specified. */ StandardModifierTagSet.prototype.isAlpha = function () { return this.hasTag(StandardTags.alpha); }; /** * Returns true if the `@beta` modifier tag was specified. */ StandardModifierTagSet.prototype.isBeta = function () { return this.hasTag(StandardTags.beta); }; /** * Returns true if the `@eventProperty` modifier tag was specified. */ StandardModifierTagSet.prototype.isEventProperty = function () { return this.hasTag(StandardTags.eventProperty); }; /** * Returns true if the `@experimental` modifier tag was specified. */ StandardModifierTagSet.prototype.isExperimental = function () { return this.hasTag(StandardTags.experimental); }; /** * Returns true if the `@internal` modifier tag was specified. */ StandardModifierTagSet.prototype.isInternal = function () { return this.hasTag(StandardTags.internal); }; /** * Returns true if the `@override` modifier tag was specified. */ StandardModifierTagSet.prototype.isOverride = function () { return this.hasTag(StandardTags.override); }; /** * Returns true if the `@packageDocumentation` modifier tag was specified. */ StandardModifierTagSet.prototype.isPackageDocumentation = function () { return this.hasTag(StandardTags.packageDocumentation); }; /** * Returns true if the `@public` modifier tag was specified. */ StandardModifierTagSet.prototype.isPublic = function () { return this.hasTag(StandardTags.public); }; /** * Returns true if the `@readonly` modifier tag was specified. */ StandardModifierTagSet.prototype.isReadonly = function () { return this.hasTag(StandardTags.readonly); }; /** * Returns true if the `@sealed` modifier tag was specified. */ StandardModifierTagSet.prototype.isSealed = function () { return this.hasTag(StandardTags.sealed); }; /** * Returns true if the `@virtual` modifier tag was specified. */ StandardModifierTagSet.prototype.isVirtual = function () { return this.hasTag(StandardTags.virtual); }; return StandardModifierTagSet; }(ModifierTagSet)); export { StandardModifierTagSet }; //# sourceMappingURL=StandardModifierTagSet.js.map