tsll
Version:
Compiler frontend for translating Typescript to LLVM IR
54 lines • 1.6 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Method = exports.Continue = exports.Break = exports.isContinue = exports.isBreak = exports.isStringArray = exports.isString = void 0;
function isString(val) {
return typeof val === 'string';
}
exports.isString = isString;
function isStringArray(val) {
return val instanceof Array && val.every(function (elem) { return typeof elem === 'string'; });
}
exports.isStringArray = isStringArray;
function isBreak(val) {
return val instanceof Break;
}
exports.isBreak = isBreak;
function isContinue(val) {
return val instanceof Continue;
}
exports.isContinue = isContinue;
var Break = (function () {
function Break() {
}
return Break;
}());
exports.Break = Break;
var Continue = (function () {
function Continue() {
}
return Continue;
}());
exports.Continue = Continue;
var Method = (function () {
function Method(name, parameterTypes, parameterNames, returnType) {
this.name = name;
this.parameterTypes = parameterTypes;
this.parameterNames = parameterNames;
this.returnType = returnType;
}
Method.prototype.getParameterTypes = function () {
return this.parameterTypes;
};
Method.prototype.getParameterNames = function () {
return this.parameterNames;
};
Method.prototype.getReturnType = function () {
return this.returnType;
};
Method.prototype.getName = function () {
return this.name;
};
return Method;
}());
exports.Method = Method;
//# sourceMappingURL=types.js.map