
js.prompto.value.TupleValue.js Maven / Gradle / Ivy
var BaseValueList = require("./BaseValueList").BaseValueList;
var TupleType = null;
var SetValue = null;
exports.resolve = function() {
TupleType = require("../type/TupleType").TupleType;
SetValue = require("./SetValue").SetValue;
};
function TupleValue(items, item, mutable) {
BaseValueList.call(this, TupleType.instance, items, item, mutable);
return this;
}
TupleValue.prototype = Object.create(BaseValueList.prototype);
TupleValue.prototype.constructor = TupleValue;
TupleValue.prototype.toString = function() {
return "(" + this.items.join(", ") + ")";
};
TupleValue.prototype.toDialect = function(writer) {
writer.append('(');
BaseValueList.prototype.toDialect.call(this, writer);
writer.append(')');
};
/*
@Override
protected TupleValue newInstance(List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy