tsll
Version:
Compiler frontend for translating Typescript to LLVM IR
29 lines • 1.12 kB
TypeScript
import llvm, { Type, Value } from "@lungchen/llvm-node";
import ts from "typescript";
export declare function isString(val: any): val is string;
export declare function isStringArray(val: any): val is Array<string>;
export declare function isBreak(val: any): val is Break;
export declare function isContinue(val: any): val is Continue;
export declare type FunctionLikeDeclaration = ts.FunctionDeclaration | ts.FunctionExpression | ts.MethodDeclaration;
export declare type Unallocated = {};
export declare type Property = {
propertyName: string;
propertyType: Type | string;
propertyValue?: Value;
};
export declare class Break {
}
export declare class Continue {
}
export declare class Method {
private name;
private parameterTypes;
private parameterNames;
private returnType;
constructor(name: string, parameterTypes: (llvm.Type | string)[], parameterNames: string[], returnType: llvm.Type | string);
getParameterTypes(): (string | llvm.Type)[];
getParameterNames(): string[];
getReturnType(): string | llvm.Type;
getName(): string;
}
//# sourceMappingURL=types.d.ts.map