"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Variable = void 0;
var util_1 = require("@antv/util");
/**
 * 定义一个变量
 */
var Variable = /** @class */ (function () {
    /**
     * 构造方法
     * @param name
     */
    function Variable(name) {
        /**
         * 变量的名称
         */
        this.name = '';
        this.name = name !== null && name !== void 0 ? name : "\uD835\uDCB3".concat((0, util_1.uniqueId)('_'));
    }
    /**
     * 判断是否为一个变量
     * @param v
     * @returns
     */
    Variable.isVariable = function (v) {
        return v instanceof Variable;
    };
    return Variable;
}());
exports.Variable = Variable;
//# sourceMappingURL=variable.js.map