Module Js_parser.Parse_error

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