package flow_parser

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t =
  1. | Assertion of string
  2. | UnexpectedToken of string
  3. | UnexpectedTokenWithSuggestion of string * string
  4. | UnexpectedNumber
  5. | UnexpectedString
  6. | UnexpectedIdentifier
  7. | UnexpectedReserved
  8. | UnexpectedReservedType
  9. | UnexpectedSuper
  10. | UnexpectedSuperCall
  11. | UnexpectedEOS
  12. | UnexpectedVariance
  13. | UnexpectedStatic
  14. | UnexpectedProto
  15. | UnexpectedTypeAlias
  16. | UnexpectedOpaqueTypeAlias
  17. | UnexpectedTypeAnnotation
  18. | UnexpectedTypeDeclaration
  19. | UnexpectedTypeImport
  20. | UnexpectedTypeExport
  21. | UnexpectedTypeInterface
  22. | NewlineAfterThrow
  23. | InvalidRegExp
  24. | InvalidRegExpFlags of string
  25. | UnterminatedRegExp
  26. | InvalidLHSInAssignment
  27. | InvalidLHSInExponentiation
  28. | InvalidLHSInForIn
  29. | InvalidLHSInForOf
  30. | ExpectedPatternFoundExpression
  31. | MultipleDefaultsInSwitch
  32. | NoCatchOrFinally
  33. | UnknownLabel of string
  34. | Redeclaration of string * string
  35. | IllegalContinue
  36. | IllegalBreak
  37. | IllegalReturn
  38. | IllegalUnicodeEscape
  39. | StrictModeWith
  40. | StrictCatchVariable
  41. | StrictVarName
  42. | StrictParamName
  43. | StrictParamDupe
  44. | StrictFunctionName
  45. | StrictOctalLiteral
  46. | StrictDelete
  47. | StrictDuplicateProperty
  48. | AccessorDataProperty
  49. | AccessorGetSet
  50. | StrictLHSAssignment
  51. | StrictLHSPostfix
  52. | StrictLHSPrefix
  53. | StrictReservedWord
  54. | JSXAttributeValueEmptyExpression
  55. | InvalidJSXAttributeValue
  56. | ExpectedJSXClosingTag of string
  57. | NoUninitializedConst
  58. | NoUninitializedDestructuring
  59. | NewlineBeforeArrow
  60. | FunctionAsStatement of {
    1. in_strict_mode : bool;
    }
  61. | AsyncFunctionAsStatement
  62. | GeneratorFunctionAsStatement
  63. | AdjacentJSXElements
  64. | ParameterAfterRestParameter
  65. | ElementAfterRestElement
  66. | PropertyAfterRestProperty
  67. | DeclareAsync
  68. | DeclareExportLet
  69. | DeclareExportConst
  70. | DeclareExportType
  71. | DeclareExportInterface
  72. | UnexpectedExportStarAs
  73. | DuplicateExport of string
  74. | ExportNamelessClass
  75. | ExportNamelessFunction
  76. | UnsupportedDecorator
  77. | MissingTypeParamDefault
  78. | WindowsFloatOfString
  79. | DuplicateDeclareModuleExports
  80. | AmbiguousDeclareModuleKind
  81. | GetterArity
  82. | SetterArity
  83. | InvalidNonTypeImportInDeclareModule
  84. | ImportTypeShorthandOnlyInPureImport
  85. | ImportSpecifierMissingComma
  86. | ExportSpecifierMissingComma
  87. | MalformedUnicode
  88. | DuplicateConstructor
  89. | DuplicatePrivateFields of string
  90. | InvalidFieldName of string * bool * bool
  91. | PrivateMethod
  92. | PrivateDelete
  93. | UnboundPrivate of string
  94. | PrivateNotInClass
  95. | SuperPrivate
  96. | YieldInFormalParameters
  97. | AwaitAsIdentifierReference
  98. | YieldAsIdentifierReference
  99. | AmbiguousLetBracket
  100. | LiteralShorthandProperty
  101. | ComputedShorthandProperty
  102. | MethodInDestructuring
  103. | TrailingCommaAfterRestElement
  104. | OptionalChainingDisabled
  105. | OptionalChainNew
  106. | OptionalChainTemplate
  107. | NullishCoalescingDisabled
exception Error of (Loc.t * t) list
val error : Loc.t -> t -> 'a
module PP : sig ... end