Module JS_Parser.Error

type t =
  1. | Overlapping_Syntax
    (*

    Something went wrong with the parser, some syntax is overlapping.

    *)
  2. | Unhandled_Statement of Loc.t
    (*

    The statement at the given offset is not handled. Maybe because it is not part of ES5.

    *)
  3. | Unhandled_Expression of Loc.t
    (*

    The expression at the given offset is not handled. Maybe because it is not part of ES5.

    *)
  4. | NotEcmaScript5 of string * Loc.t
    (*

    Something used in the script is not part of ES5.

    *)
  5. | UnusedAnnotations of string list * Loc.t
    (*

    Some JS_Logic annotations were in the wrong place.

    *)
  6. | FlowParser of string * string
    (*

    Some error happened at the flow_parser level.

    *)
  7. | LoaderError of string * int * string * string
    (*

    Some error happened when trying to process CommonJS constructs such as require.

    *)
val str : t -> string
exception ParserError of t