mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-20 10:16:37 +00:00
Getters & setters (static); Instantiate compiler tests; Cleanup
This commit is contained in:
16
src/types.ts
16
src/types.ts
@ -1,3 +1,7 @@
|
||||
import {
|
||||
Target
|
||||
} from "./compiler";
|
||||
|
||||
import {
|
||||
Class,
|
||||
Function
|
||||
@ -205,6 +209,18 @@ export class Type {
|
||||
static readonly void: Type = new Type(TypeKind.VOID, 0);
|
||||
}
|
||||
|
||||
// export class ClassType extends Type {
|
||||
// constructor(cls: Class) {
|
||||
// super(TypeKind.USIZE, clz.size);
|
||||
// }
|
||||
// }
|
||||
|
||||
// export class FunctionType extends Type {
|
||||
// constructor(fun: Function) {
|
||||
// super(TypeKind.USIZE, fun.program.target == Target.WASM64 ? 8 : 4);
|
||||
// }
|
||||
// }
|
||||
|
||||
/** Converts an array of types to an array of native types. */
|
||||
export function typesToNativeTypes(types: Type[]): NativeType[] {
|
||||
const k: i32 = types.length;
|
||||
|
Reference in New Issue
Block a user