Skip to content

Commit f55fc70

Browse files
committed
Progress; Restructuring
1 parent e14d02e commit f55fc70

20 files changed

Lines changed: 1008 additions & 887 deletions

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
node_modules/
22
npm-debug.*
33
out/
4+
raw/
5+

src/ast.ts

Lines changed: 135 additions & 51 deletions
Large diffs are not rendered by default.

src/binaryen.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ declare type BinaryenExportRef = usize;
219219
declare function _BinaryenAddExport(module: BinaryenModuleRef, internalName: CString, externalName: CString): BinaryenExportRef;
220220
declare function _BinaryenRemoveExport(module: BinaryenModuleRef, externalName: CString): void;
221221

222-
declare function _BinaryenAddGlobal(module: BinaryenModuleRef, name: CString, type: BinaryenType, mutable: i8, init: BinaryenExpressionRef): BinaryenImportRef;
222+
declare function _BinaryenAddGlobal(module: BinaryenModuleRef, name: CString, type: BinaryenType, mutable: i8, init: BinaryenExpressionRef): BinaryenImportRef; // sic
223223

224224
declare function _BinaryenSetFunctionTable(module: BinaryenModuleRef, funcs: CArray<BinaryenFunctionRef>, numFuncs: BinaryenIndex): void;
225225

src/binaryen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ export class Module {
394394
}
395395
}
396396

397-
addFunction(name: string, type: Type, varTypes: Type[], body: BinaryenExpressionRef): BinaryenFunctionRef {
397+
addFunction(name: string, type: BinaryenFunctionTypeRef, varTypes: Type[], body: BinaryenExpressionRef): BinaryenFunctionRef {
398398
const cStr: CString = allocString(name);
399399
const cArr: CArray<i32> = allocI32Array(varTypes);
400400
try {

0 commit comments

Comments
 (0)