
js.prompto.runtime.Variable.js Maven / Gradle / Ivy
var BaseType = require("../type/BaseType").BaseType;
function Variable (id, type) {
if(!(type instanceof BaseType))
throw new Error();
this.id = id;
this.type = type;
return this;
}
Object.defineProperty(Variable.prototype, "name", {
get : function() {
return this.id.name;
}
});
Variable.prototype.toString = function() {
return this.name;
}
Variable.prototype.getType = function(context) {
return this.type;
};
exports.Variable = Variable;
© 2015 - 2025 Weber Informatics LLC | Privacy Policy