UNPKG

react-router-ga

Version:

[![Downloads](https://img.shields.io/npm/dm/react-router-ga)](https://npm.im/react-router-ga) [![Version](https://img.shields.io/npm/v/react-router-ga)](https://npm.im/react-router-ga) [![License](https://img.shields.io/npm/l/react-router-ga)](https://ope

38 lines (29 loc) 636 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getSectionForNode = getSectionForNode; 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; } }