"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NewPromptHandle = void 0;
const tree_1 = require("../tree");
const PromptHandle_1 = require("./PromptHandle");
class NewPromptHandle extends PromptHandle_1.PromptHandle {
    constructor(type, parent) {
        super();
        this.type = type;
        this.parent = parent;
        this._id = tree_1.TreeNode.nextId();
    }
    get id() {
        return this._id;
    }
    get depth() {
        return this.parent.depth + 1;
    }
}
exports.NewPromptHandle = NewPromptHandle;
//# sourceMappingURL=NewPromptHandle.js.map