download
raw
515 Bytes
export function getSectionForNode(n) {
switch (n.type) {
case "ModuleImport":
return "import";
case "CallInstruction":
case "CallIndirectInstruction":
case "Func":
case "Instr":
return "code";
case "ModuleExport":
return "export";
case "Start":
return "start";
case "TypeInstruction":
return "type";
case "IndexInFuncSection":
return "func";
case "Global":
return "global";
// No section
default:
return;
}
}

Xet Storage Details

Size:
515 Bytes
·
Xet hash:
776ee858aead2656c3d15951cc9745eb51fb3abdea358f4118ec54d13c8cafe7

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.