"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
require("reflect-metadata");
const PiElementReferenceM_1 = require("./PiElementReferenceM");
const MobxModelDecorators_1 = require("../MobxModelDecorators");
const DecoratedModelElement_1 = require("../DecoratedModelElement");
const mobx_1 = require("mobx");
class MobxTestElement extends DecoratedModelElement_1.MobxModelElementImpl {
    constructor(name) {
        super();
        this.name = name;
    }
    toString() {
        return "MobxTestElement '" + this.name + "'";
    }
    text() {
        return this.name;
    }
}
__decorate([
    mobx_1.observable,
    __metadata("design:type", String)
], MobxTestElement.prototype, "name", void 0);
exports.MobxTestElement = MobxTestElement;
class ModelContext {
}
__decorate([
    mobx_1.observable,
    __metadata("design:type", MobxTestElement)
], ModelContext.prototype, "root", void 0);
exports.ModelContext = ModelContext;
class MobxTestTreeNode extends MobxTestElement {
    constructor(name) {
        super(name);
    }
    toString() {
        return "TreeNode";
    }
}
__decorate([
    MobxModelDecorators_1.observablepart,
    __metadata("design:type", MobxTestElement)
], MobxTestTreeNode.prototype, "left", void 0);
__decorate([
    MobxModelDecorators_1.observablepart,
    __metadata("design:type", MobxTestElement)
], MobxTestTreeNode.prototype, "right", void 0);
exports.MobxTestTreeNode = MobxTestTreeNode;
class MobxTestParts extends MobxTestElement {
    constructor(name) {
        super(name);
    }
    toString() {
        return "FunctionCallExpression";
    }
}
__decorate([
    MobxModelDecorators_1.observablelistpart,
    __metadata("design:type", Array)
], MobxTestParts.prototype, "manyPart", void 0);
__decorate([
    MobxModelDecorators_1.observablepart,
    __metadata("design:type", MobxTestElement)
], MobxTestParts.prototype, "singlePart", void 0);
__decorate([
    MobxModelDecorators_1.observablelistreference,
    __metadata("design:type", Array)
], MobxTestParts.prototype, "manyReference", void 0);
__decorate([
    MobxModelDecorators_1.observablepart,
    __metadata("design:type", PiElementReferenceM_1.PiElementReferenceM)
], MobxTestParts.prototype, "singleReference", void 0);
exports.MobxTestParts = MobxTestParts;
class MobxTestRoot extends MobxTestElement {
}
__decorate([
    MobxModelDecorators_1.observablepart,
    __metadata("design:type", MobxTestParts)
], MobxTestRoot.prototype, "element", void 0);
exports.MobxTestRoot = MobxTestRoot;
class MobxTestReferences extends MobxTestElement {
    constructor(name) {
        super(name);
    }
}
__decorate([
    mobx_1.observable,
    __metadata("design:type", String)
], MobxTestReferences.prototype, "name", void 0);
__decorate([
    MobxModelDecorators_1.observablelistreference,
    __metadata("design:type", Array)
], MobxTestReferences.prototype, "manyReference", void 0);
__decorate([
    MobxModelDecorators_1.observablereference,
    __metadata("design:type", Array)
], MobxTestReferences.prototype, "singleReference", void 0);
exports.MobxTestReferences = MobxTestReferences;
//# sourceMappingURL=MobxModel.js.map