biome_js_parser 0.5.7

Biome's JavaScript parser
Documentation
JsModule {
    bom_token: missing (optional),
    interpreter_token: missing (optional),
    directives: JsDirectiveList [],
    items: JsModuleItemList [
        JsExport {
            decorators: JsDecoratorList [],
            export_token: EXPORT_KW@0..6 "export" [] [],
            export_clause: missing (required),
        },
    ],
    eof_token: EOF@6..7 "" [Newline("\n")] [],
}

0: JS_MODULE@0..7
  0: (empty)
  1: (empty)
  2: JS_DIRECTIVE_LIST@0..0
  3: JS_MODULE_ITEM_LIST@0..6
    0: JS_EXPORT@0..6
      0: JS_DECORATOR_LIST@0..0
      1: EXPORT_KW@0..6 "export" [] []
      2: (empty)
  4: EOF@6..7 "" [Newline("\n")] []
--
export_err.js:2:1 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

  × Expected a class, a function, or a variable declaration but instead found the end of the file.
  
    1 │ export
  > 2 │ 
      │ 
  
  i Expected a class, a function, or a variable declaration here.
  
    1 │ export
  > 2 │ 
      │ 
  
--
export