Sha256: 4296139d79c5729eef76efc5a0156571d9b07e39f2f3bfecaba2f260f66be3c8
Contents?: true
Size: 515 Bytes
Versions: 30
Compression:
Stored size: 515 Bytes
Contents
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; } }
Version data entries
30 entries across 29 versions & 10 rubygems