yadop
Version:
Yet another Doc Parser
31 lines • 1.28 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var 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 function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var processor_1 = require("../../processor");
var tags_1 = require("../tags");
/** Ngdoc comment processor. */
var NgdocProcessor = /** @class */ (function (_super) {
__extends(NgdocProcessor, _super);
function NgdocProcessor() {
return _super !== null && _super.apply(this, arguments) || this;
}
/** {@inheritDoc} */
NgdocProcessor.prototype.process = function () {
return _super.prototype.process.call(this)
.filter(function (comment) {
return comment.tags.filter(tags_1.tags.annotations.ngdoc).length > 0;
});
};
return NgdocProcessor;
}(processor_1.default));
exports.default = NgdocProcessor;
//# sourceMappingURL=processor.js.map