UNPKG

woltlab-compiler

Version:

A compiler for WoltLab-Package Archives and WoltLab-Package Components

30 lines 943 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const util_1 = require("util"); const Instruction_1 = require("./Instruction"); /** * Represents an instruction which provides the functionality to delete named objects. */ class NamedDeleteInstruction extends Instruction_1.Instruction { /** * Initializes a new instance of the `NamedDeleteInstruction` class. */ constructor(options) { super(options); /** * The objects to delete. */ this.objectsToDelete = []; if (!util_1.isNullOrUndefined(options.ObjectsToDelete)) { this.ObjectsToDelete.push(...options.ObjectsToDelete); } } /** * @inheritdoc */ get ObjectsToDelete() { return this.objectsToDelete; } } exports.NamedDeleteInstruction = NamedDeleteInstruction; //# sourceMappingURL=NamedDeleteInstruction.js.map