Module Js_parser.Parse_error

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