"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);
};
var CoreTestVariable_1;
Object.defineProperty(exports, "__esModule", { value: true });
const language_1 = require("../../../language");
const CoreTestModel_1 = require("../CoreTestModel");
const CoreTestEntity_1 = require("./CoreTestEntity");
let CoreTestVariable = CoreTestVariable_1 = class CoreTestVariable extends CoreTestModel_1.CoreTestModelElement {
    constructor() {
        super();
        this.$typename = "CoreTestVariable";
        this.name = "";
    }
    toString() {
        return "variable " + this.name;
    }
    asString() {
        return this.toString();
    }
    static create(name, type) {
        const result = new CoreTestVariable_1();
        result.name = name;
        result.type = type;
        return result;
    }
};
__decorate([
    language_1.observablereference,
    __metadata("design:type", CoreTestEntity_1.CoreTestEntity)
], CoreTestVariable.prototype, "type", void 0);
CoreTestVariable = CoreTestVariable_1 = __decorate([
    language_1.model,
    __metadata("design:paramtypes", [])
], CoreTestVariable);
exports.CoreTestVariable = CoreTestVariable;
//# sourceMappingURL=CoreTestVariable.js.map