# All files / src/tokenizer/type index.js

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

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    27x
    27x
    27x

    27x

    27x

     // @flow
    import Trie from '../../utils/trie';
    import token from '../token';
    import Syntax from '../../Syntax';

    const supported = [
      'i32',
      'i64',
      'f32',
      'f64',
      'i32[]',
      'i64[]',
      'f32[]',
      'f64[]',
      'u8[]',
      'bool',
      'Function',
      'Memory',
      'Table',
      'void',
    ];
    const trie = new Trie(supported);
    export default token(trie.fsearch, Syntax.Type, supported);