package flow_parser

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t =
  1. | Assertion of string
  2. | EnumBooleanMemberNotInitialized of {
    1. enum_name : string;
    2. member_name : string;
    }
  3. | EnumDuplicateMemberName of {
    1. enum_name : string;
    2. member_name : string;
    }
  4. | EnumInconsistentMemberValues of {
    1. enum_name : string;
    }
  5. | EnumInvalidExplicitType of {
    1. enum_name : string;
    2. supplied_type : string option;
    }
  6. | EnumInvalidExport
  7. | EnumInvalidInitializerSeparator of {
    1. member_name : string;
    }
  8. | EnumInvalidMemberInitializer of {
    1. enum_name : string;
    2. explicit_type : Enum_common.explicit_type option;
    3. member_name : string;
    }
  9. | EnumInvalidMemberName of {
    1. enum_name : string;
    2. member_name : string;
    }
  10. | EnumInvalidMemberSeparator
  11. | EnumInvalidEllipsis of {
    1. trailing_comma : bool;
    }
  12. | EnumNumberMemberNotInitialized of {
    1. enum_name : string;
    2. member_name : string;
    }
  13. | EnumStringMemberInconsistentlyInitailized of {
    1. enum_name : string;
    }
  14. | Unexpected of string
  15. | UnexpectedWithExpected of string * string
  16. | UnexpectedTokenWithSuggestion of string * string
  17. | UnexpectedReserved
  18. | UnexpectedReservedType
  19. | UnexpectedSuper
  20. | UnexpectedSuperCall
  21. | UnexpectedEOS
  22. | UnexpectedVariance
  23. | UnexpectedStatic
  24. | UnexpectedProto
  25. | UnexpectedTypeAlias
  26. | UnexpectedOpaqueTypeAlias
  27. | UnexpectedTypeAnnotation
  28. | UnexpectedTypeDeclaration
  29. | UnexpectedTypeImport
  30. | UnexpectedTypeExport
  31. | UnexpectedTypeInterface
  32. | UnexpectedSpreadType
  33. | UnexpectedExplicitInexactInObject
  34. | InexactInsideExact
  35. | InexactInsideNonObject
  36. | NewlineAfterThrow
  37. | InvalidFloatBigInt
  38. | InvalidSciBigInt
  39. | InvalidRegExp
  40. | InvalidRegExpFlags of string
  41. | UnterminatedRegExp
  42. | InvalidLHSInAssignment
  43. | InvalidLHSInExponentiation
  44. | InvalidLHSInForIn
  45. | InvalidLHSInForOf
  46. | InvalidIndexedAccess of {
    1. has_bracket : bool;
    }
  47. | InvalidOptionalIndexedAccess
  48. | ExpectedPatternFoundExpression
  49. | MultipleDefaultsInSwitch
  50. | NoCatchOrFinally
  51. | UnknownLabel of string
  52. | Redeclaration of string * string
  53. | IllegalContinue
  54. | IllegalBreak
  55. | IllegalReturn
  56. | IllegalUnicodeEscape
  57. | StrictModeWith
  58. | StrictCatchVariable
  59. | StrictVarName
  60. | StrictParamName
  61. | StrictParamDupe
  62. | StrictFunctionName
  63. | StrictOctalLiteral
  64. | StrictNonOctalLiteral
  65. | StrictDelete
  66. | StrictDuplicateProperty
  67. | AccessorDataProperty
  68. | AccessorGetSet
  69. | StrictLHSAssignment
  70. | StrictLHSPostfix
  71. | StrictLHSPrefix
  72. | StrictReservedWord
  73. | JSXAttributeValueEmptyExpression
  74. | InvalidJSXAttributeValue
  75. | ExpectedJSXClosingTag of string
  76. | NoUninitializedConst
  77. | NoUninitializedDestructuring
  78. | NewlineBeforeArrow
  79. | FunctionAsStatement of {
    1. in_strict_mode : bool;
    }
  80. | AsyncFunctionAsStatement
  81. | GeneratorFunctionAsStatement
  82. | AdjacentJSXElements
  83. | ParameterAfterRestParameter
  84. | ElementAfterRestElement
  85. | PropertyAfterRestElement
  86. | DeclareAsync
  87. | DeclareClassElement
  88. | DeclareClassFieldInitializer
  89. | DeclareOpaqueTypeInitializer
  90. | DeclareExportLet
  91. | DeclareExportConst
  92. | DeclareExportType
  93. | DeclareExportInterface
  94. | UnexpectedExportStarAs
  95. | DuplicateExport of string
  96. | ExportNamelessClass
  97. | ExportNamelessFunction
  98. | UnsupportedDecorator
  99. | MissingTypeParamDefault
  100. | DuplicateDeclareModuleExports
  101. | AmbiguousDeclareModuleKind
  102. | GetterArity
  103. | SetterArity
  104. | InvalidNonTypeImportInDeclareModule
  105. | ImportTypeShorthandOnlyInPureImport
  106. | ImportSpecifierMissingComma
  107. | ExportSpecifierMissingComma
  108. | MalformedUnicode
  109. | DuplicateConstructor
  110. | DuplicatePrivateFields of string
  111. | InvalidClassMemberName of {
    1. name : string;
    2. static : bool;
    3. method_ : bool;
    4. private_ : bool;
    }
  112. | PrivateDelete
  113. | UnboundPrivate of string
  114. | PrivateNotInClass
  115. | SuperPrivate
  116. | YieldInFormalParameters
  117. | AwaitAsIdentifierReference
  118. | YieldAsIdentifierReference
  119. | AmbiguousLetBracket
  120. | LiteralShorthandProperty
  121. | ComputedShorthandProperty
  122. | MethodInDestructuring
  123. | TrailingCommaAfterRestElement
  124. | OptionalChainingDisabled
  125. | OptionalChainNew
  126. | OptionalChainTemplate
  127. | NullishCoalescingDisabled
  128. | NullishCoalescingUnexpectedLogical of string
  129. | WhitespaceInPrivateName
  130. | ThisParamAnnotationRequired
  131. | ThisParamMustBeFirst
  132. | ThisParamMayNotBeOptional
  133. | GetterMayNotHaveThisParam
  134. | SetterMayNotHaveThisParam
  135. | ThisParamBannedInArrowFunctions
  136. | ThisParamBannedInConstructor
val compare : t -> t -> Ppx_deriving_runtime.int
exception Error of (Loc.t * t) list
val error : Loc.t -> t -> 'a
module PP : sig ... end