Module Js_parser.Parse_error
type t = - | AccessorDataProperty
- | AccessorGetSet
- | AdjacentJSXElements
- | AmbiguousDeclareModuleKind
- | AmbiguousLetBracket
- | AsyncFunctionAsStatement
- | AwaitAsIdentifierReference
- | AwaitInAsyncFormalParameters
- | ComputedShorthandProperty
- | ConstructorCannotBeAccessor
- | ConstructorCannotBeAsync
- | ConstructorCannotBeGenerator
- | DeclareAsync
- | DeclareClassElement
- | DeclareClassFieldInitializer
- | DeclareExportInterface
- | DeclareExportType
- | DeclareOpaqueTypeInitializer
- | DuplicateConstructor
- | DuplicateDeclareModuleExports
- | DuplicateExport(string)
- | DuplicatePrivateFields(string)
- | ElementAfterRestElement
- | EnumBigIntMemberNotInitialized of {- enum_name: string,
- member_name: string,
 - }
- | EnumBooleanMemberNotInitialized of {- enum_name: string,
- member_name: string,
 - }
- | EnumDuplicateMemberName of {- enum_name: string,
- member_name: string,
 - }
- | EnumInconsistentMemberValues of {- enum_name: string,
 - }
- | EnumInvalidEllipsis of {- trailing_comma: bool,
 - }
- | EnumInvalidExplicitType of {- enum_name: string,
- supplied_type: option(string),
 - }
- | EnumInvalidExport
- | EnumInvalidInitializerSeparator of {- member_name: string,
 - }
- | EnumInvalidMemberInitializer of {- enum_name: string,
- explicit_type: option(Enum_common.explicit_type),
- member_name: string,
 - }
- | EnumInvalidMemberName of {- enum_name: string,
- member_name: string,
 - }
- | EnumInvalidMemberSeparator
- | EnumNumberMemberNotInitialized of {- enum_name: string,
- member_name: string,
 - }
- | EnumStringMemberInconsistentlyInitialized of {- enum_name: string,
 - }
- | EnumInvalidConstPrefix
- | ExpectedJSXClosingTag(string)
- | ExpectedPatternFoundExpression
- | ExportSpecifierMissingComma
- | FunctionAsStatement of {- in_strict_mode: bool,
 - }
- | GeneratorFunctionAsStatement
- | GetterArity
- | GetterMayNotHaveThisParam
- | IllegalBreak
- | IllegalContinue
- | IllegalReturn
- | IllegalUnicodeEscape
- | ImportSpecifierMissingComma
- | ImportTypeShorthandOnlyInPureImport
- | InexactInsideExact
- | InexactInsideNonObject
- | InvalidClassMemberName of {- name: string,
- static: bool,
- method_: bool,
- private_: bool,
 - }
- | InvalidComponentParamName
- | InvalidComponentRenderAnnotation
- | InvalidComponentStringParameterBinding of {- optional: bool,
- name: string,
 - }
- | InvalidFloatBigInt
- | InvalidIndexedAccess of {- has_bracket: bool,
 - }
- | InvalidJSXAttributeValue
- | InvalidLHSInAssignment
- | InvalidLHSInExponentiation
- | InvalidLHSInForIn
- | InvalidLHSInForOf
- | InvalidNonTypeImportInDeclareModule
- | InvalidOptionalIndexedAccess
- | InvalidRegExp
- | InvalidRegExpFlags(string)
- | InvalidSciBigInt
- | InvalidTupleOptionalSpread
- | InvalidTupleVariance
- | InvalidTypeof
- | JSXAttributeValueEmptyExpression
- | LiteralShorthandProperty
- | MalformedUnicode
- | MethodInDestructuring
- | MissingJSXClosingTag(string)
- | MissingTypeParam
- | MissingTypeParamDefault
- | MultipleDefaultsInSwitch
- | NewlineAfterThrow
- | NewlineBeforeArrow
- | NoCatchOrFinally
- | NoUninitializedConst
- | NoUninitializedDestructuring
- | NullishCoalescingUnexpectedLogical(string)
- | OptionalChainNew
- | OptionalChainTemplate
- | ParameterAfterRestParameter
- | PrivateDelete
- | PrivateNotInClass
- | PropertyAfterRestElement
- | Redeclaration(string, string)
- | SetterArity
- | SetterMayNotHaveThisParam
- | StrictCatchVariable
- | StrictDelete
- | StrictDuplicateProperty
- | StrictFunctionName
- | StrictLHSAssignment
- | StrictLHSPostfix
- | StrictLHSPrefix
- | StrictModeWith
- | StrictNonOctalLiteral
- | StrictOctalLiteral
- | StrictParamDupe
- | StrictParamName
- | StrictParamNotSimple
- | StrictReservedWord
- | StrictVarName
- | SuperPrivate
- | TSAbstractClass
- | TSClassVisibility([ `Public | `Private | `Protected ])
- | TSTemplateLiteralType
- | ThisParamAnnotationRequired
- | ThisParamBannedInArrowFunctions
- | ThisParamBannedInConstructor
- | ThisParamMayNotBeOptional
- | ThisParamMustBeFirst
- | TrailingCommaAfterRestElement
- | UnboundPrivate(string)
- | Unexpected(string)
- | UnexpectedEOS
- | UnexpectedExplicitInexactInObject
- | UnexpectedOpaqueTypeAlias
- | UnexpectedProto
- | UnexpectedReserved
- | UnexpectedReservedType
- | UnexpectedSpreadType
- | UnexpectedStatic
- | UnexpectedSuper
- | UnexpectedSuperCall
- | UnexpectedTokenWithSuggestion(string, string)
- | UnexpectedTypeAlias
- | UnexpectedTypeAnnotation
- | UnexpectedTypeDeclaration
- | UnexpectedTypeExport
- | UnexpectedTypeImport
- | UnexpectedTypeInterface
- | UnexpectedVariance
- | UnexpectedWithExpected(string, string)
- | UnknownLabel(string)
- | UnsupportedDecorator
- | UnterminatedRegExp
- | WhitespaceInPrivateName
- | YieldAsIdentifierReference
- | YieldInFormalParameters
;let compare: t => t => int;