package flow_parser

  1. Overview
  2. Docs
type t =
  1. | Assertion of string
  2. | UnexpectedToken of string
  3. | UnexpectedTokenWithSuggestion of string * string
  4. | UnexpectedNumber
  5. | UnexpectedString
  6. | UnexpectedIdentifier
  7. | UnexpectedReserved
  8. | UnexpectedEOS
  9. | UnexpectedTypeAlias
  10. | UnexpectedTypeAnnotation
  11. | UnexpectedTypeDeclaration
  12. | UnexpectedTypeImport
  13. | UnexpectedTypeExport
  14. | UnexpectedTypeInterface
  15. | NewlineAfterThrow
  16. | InvalidRegExp
  17. | InvalidRegExpFlags of string
  18. | UnterminatedRegExp
  19. | InvalidLHSInAssignment
  20. | InvalidLHSInExponentiation
  21. | InvalidLHSInForIn
  22. | InvalidLHSInForOf
  23. | ExpectedPatternFoundExpression
  24. | MultipleDefaultsInSwitch
  25. | NoCatchOrFinally
  26. | UnknownLabel of string
  27. | Redeclaration of string * string
  28. | IllegalContinue
  29. | IllegalBreak
  30. | IllegalReturn
  31. | IllegalYield
  32. | StrictModeWith
  33. | StrictCatchVariable
  34. | StrictVarName
  35. | StrictParamName
  36. | StrictParamDupe
  37. | StrictFunctionName
  38. | StrictOctalLiteral
  39. | StrictDelete
  40. | StrictDuplicateProperty
  41. | AccessorDataProperty
  42. | AccessorGetSet
  43. | StrictLHSAssignment
  44. | StrictLHSPostfix
  45. | StrictLHSPrefix
  46. | StrictReservedWord
  47. | JSXAttributeValueEmptyExpression
  48. | InvalidJSXAttributeValue
  49. | ExpectedJSXClosingTag of string
  50. | NoUninitializedConst
  51. | NoUninitializedDestructuring
  52. | NewlineBeforeArrow
  53. | StrictFunctionStatement
  54. | AdjacentJSXElements
  55. | ParameterAfterRestParameter
  56. | AsyncGenerator
  57. | DeclareAsync
  58. | DeclareExportLet
  59. | DeclareExportConst
  60. | DeclareExportType
  61. | DeclareExportInterface
  62. | UnexpectedExportStarAs
  63. | DuplicateExport of string
  64. | ExportNamelessClass
  65. | ExportNamelessFunction
  66. | UnsupportedDecorator
  67. | MissingTypeParamDefault
  68. | WindowsFloatOfString
  69. | DuplicateDeclareModuleExports
  70. | AmbiguousDeclareModuleKind
exception Error of (Loc.t * t) list
val error : Loc.t -> t -> 'a
module PP : sig ... end
OCaml

Innovation. Community. Security.