"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 CoreTestFunction_1;
Object.defineProperty(exports, "__esModule", { value: true });
const mobx_1 = require("mobx");
const language_1 = require("../../../language");
const CoreTestModel_1 = require("../CoreTestModel");
const CoreTestExpression_1 = require("../expressions/CoreTestExpression");
let CoreTestFunction = CoreTestFunction_1 = class CoreTestFunction extends CoreTestModel_1.CoreTestModelElement {
    constructor() {
        super();
        this.$typename = "CoreTestFunction";
    }
    toString() {
        return "function " + this.name;
    }
    asString() {
        return this.toString();
    }
    static create(name) {
        const result = new CoreTestFunction_1();
        result.name = name;
        return result;
    }
};
__decorate([
    mobx_1.observable,
    __metadata("design:type", String)
], CoreTestFunction.prototype, "name", void 0);
__decorate([
    language_1.observablepart,
    __metadata("design:type", CoreTestExpression_1.CoreTestExpression)
], CoreTestFunction.prototype, "expression", void 0);
__decorate([
    language_1.observablelistpart,
    __metadata("design:type", Array)
], CoreTestFunction.prototype, "parameters", void 0);
CoreTestFunction = CoreTestFunction_1 = __decorate([
    language_1.model,
    __metadata("design:paramtypes", [])
], CoreTestFunction);
exports.CoreTestFunction = CoreTestFunction;
//# sourceMappingURL=CoreTestFunction.js.map