@sudoo/marked
Version:
JavaScript & TypeScript code runner in JavaScript, safe with marked territory, asynchronous
29 lines (28 loc) • 759 B
JavaScript
;
/**
* @author WMXPY
* @namespace Debug
* @description Flow Controller
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.MarkedDebugFlowController = void 0;
class MarkedDebugFlowController {
static fromOptions(options) {
return new MarkedDebugFlowController(options);
}
constructor(options) {
this._continueMethod = options.continueMethod;
this._terminateMethod = options.terminateMethod;
this._nextStepMethod = options.nextStepMethod;
}
continue() {
this._continueMethod();
}
terminate() {
this._terminateMethod();
}
nextStep() {
this._nextStepMethod();
}
}
exports.MarkedDebugFlowController = MarkedDebugFlowController;