mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-14 16:35:03 +01:00
fmt
This commit is contained in:
parent
761f78de0b
commit
09ae6cbb56
5 changed files with 6 additions and 7 deletions
|
|
@ -58,7 +58,7 @@ export type ExprLet = {
|
|||
type?: Type;
|
||||
rhs: Expr;
|
||||
// IMPORTANT: This is (sadly) shared with ExprBlock.
|
||||
local?: LocalInfo,
|
||||
local?: LocalInfo;
|
||||
};
|
||||
|
||||
export type ExprBlock = {
|
||||
|
|
|
|||
|
|
@ -42,8 +42,7 @@ function main() {
|
|||
|
||||
console.log("-----AST typecked------");
|
||||
const typecked = typeck(resolved);
|
||||
console.dir(typecked, {depth: 8});
|
||||
|
||||
console.dir(typecked, { depth: 8 });
|
||||
|
||||
console.log("-----wasm--------------");
|
||||
const wasmModule = lowerToWasm(typecked);
|
||||
|
|
|
|||
|
|
@ -629,7 +629,7 @@ function addRt(cx: Context, ast: Ast) {
|
|||
{ kind: "local.get", imm: 0 },
|
||||
{ kind: "i32.store", imm: { offset: 0, align: 4 } },
|
||||
// get the length and store it in the iovec
|
||||
{ kind: "i32.const", imm: iovecArray + 4 },
|
||||
{ kind: "i32.const", imm: iovecArray + 4 },
|
||||
{ kind: "local.get", imm: 1 },
|
||||
{ kind: "i32.store", imm: { offset: 0, align: 4 } },
|
||||
// now call stuff
|
||||
|
|
|
|||
|
|
@ -316,7 +316,7 @@ export class InferContext {
|
|||
|
||||
public resolveIfPossible(ty: Ty): Ty {
|
||||
// TODO: dont be shallow resolve
|
||||
// note that fixing this will cause cycles. fix those cycles instead using
|
||||
// note that fixing this will cause cycles. fix those cycles instead using
|
||||
// he fancy occurs check as errs called it.
|
||||
if (ty.kind === "var") {
|
||||
return this.tryResolveVar(ty.index) ?? ty;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
export function encodeUtf8(s: string): Uint8Array {
|
||||
return new TextEncoder().encode(s);
|
||||
}
|
||||
return new TextEncoder().encode(s);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue