@taiga-ui/cdk
Version:
Base library for creating Angular components and applications using Taiga UI principles regarding of actual visual appearance
15 lines • 612 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.removeAttrs = void 0;
function removeAttrs(attrs, sourceCodeLocation, recorder, templateOffset) {
attrs.forEach((attr) => {
var _a;
const attrOffset = (_a = sourceCodeLocation.attrs) === null || _a === void 0 ? void 0 : _a[attr.name];
if (attrOffset) {
const { startOffset, endOffset } = attrOffset;
recorder.remove(templateOffset + startOffset - 1, endOffset - startOffset + 1);
}
});
}
exports.removeAttrs = removeAttrs;
//# sourceMappingURL=remove-attrs.js.map