# All files / src/emitter/section index.js

100% Statements 12/12
100% Branches 0/0
100% Functions 0/0
100% Lines 12/12

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    21x
    21x
    21x
    21x
    21x
    21x
    21x
    21x
    21x
    21x
    21x

    21x

     // @flow
    import imports from "./imports";
    import exports_ from "./exports";
    import globals from "./globals";
    import functions from "./functions";
    import element from "./element";
    import types from "./types";
    import code from "./code";
    import memory from "./memory";
    import table from "./table";
    import name from "./name";
    import {
      SECTION_TYPE,
      SECTION_IMPORT,
      SECTION_FUNCTION,
      SECTION_MEMORY,
      SECTION_TABLE,
      SECTION_GLOBAL,
      SECTION_EXPORT,
      SECTION_ELEMENT,
      SECTION_CODE,
      SECTION_NAME,
    } from "./codes";

    import writer from "./writer";

    export default {
      type: writer({ type: SECTION_TYPE, label: "Types", emitter: types }),
      imports: writer({ type: SECTION_IMPORT, label: "Imports", emitter: imports }),
      function: writer({
        type: SECTION_FUNCTION,
        label: "Functions",
        emitter: functions,
      }),
      table: writer({ type: SECTION_TABLE, label: "Table", emitter: table }),
      memory: writer({ type: SECTION_MEMORY, label: "Memory", emitter: memory }),
      exports: writer({
        type: SECTION_EXPORT,
        label: "Exports",
        emitter: exports_,
      }),
      globals: writer({ type: SECTION_GLOBAL, label: "Globals", emitter: globals }),
      element: writer({
        type: SECTION_ELEMENT,
        label: "Element",
        emitter: element,
      }),
      code: writer({ type: SECTION_CODE, label: "Code", emitter: code }),
      name: writer({ type: SECTION_NAME, label: "Name", emitter: name }),
    };