Js_parser.Parse_error
type t =
| EnumBooleanMemberNotInitialized of {
}
| EnumDuplicateMemberName of {
}
| EnumInconsistentMemberValues of {
}
| EnumInvalidExplicitType of {
}
| EnumInvalidExport
| EnumInvalidInitializerSeparator of {
}
| EnumInvalidMemberInitializer of {
enum_name : string;
explicit_type : Enum_common.explicit_type option;
member_name : string;
}
| EnumInvalidMemberName of {
}
| EnumInvalidMemberSeparator
| EnumInvalidEllipsis of {
}
| EnumNumberMemberNotInitialized of {
}
| EnumStringMemberInconsistentlyInitailized of {
}
| Unexpected of string
| UnexpectedWithExpected of string * string
| UnexpectedTokenWithSuggestion of string * string
| UnexpectedReserved
| UnexpectedReservedType
| UnexpectedSuper
| UnexpectedSuperCall
| UnexpectedEOS
| UnexpectedVariance
| UnexpectedStatic
| UnexpectedProto
| UnexpectedTypeAlias
| UnexpectedOpaqueTypeAlias
| UnexpectedTypeAnnotation
| UnexpectedTypeDeclaration
| UnexpectedTypeImport
| UnexpectedTypeExport
| UnexpectedTypeInterface
| UnexpectedSpreadType
| UnexpectedExplicitInexactInObject
| InexactInsideExact
| InexactInsideNonObject
| NewlineAfterThrow
| InvalidFloatBigInt
| InvalidSciBigInt
| InvalidRegExp
| InvalidRegExpFlags of string
| UnterminatedRegExp
| InvalidLHSInAssignment
| InvalidLHSInExponentiation
| InvalidLHSInForIn
| InvalidLHSInForOf
| InvalidIndexedAccess of {
}
| InvalidOptionalIndexedAccess
| ExpectedPatternFoundExpression
| MultipleDefaultsInSwitch
| NoCatchOrFinally
| UnknownLabel of string
| Redeclaration of string * string
| IllegalContinue
| IllegalBreak
| IllegalReturn
| IllegalUnicodeEscape
| StrictModeWith
| StrictCatchVariable
| StrictVarName
| StrictParamName
| StrictParamDupe
| StrictParamNotSimple
| StrictFunctionName
| StrictOctalLiteral
| StrictNonOctalLiteral
| StrictDelete
| StrictDuplicateProperty
| AccessorDataProperty
| AccessorGetSet
| InvalidTypeof
| StrictLHSAssignment
| StrictLHSPostfix
| StrictLHSPrefix
| StrictReservedWord
| JSXAttributeValueEmptyExpression
| InvalidJSXAttributeValue
| ExpectedJSXClosingTag of string
| NoUninitializedConst
| NoUninitializedDestructuring
| NewlineBeforeArrow
| FunctionAsStatement of {
}
| AsyncFunctionAsStatement
| GeneratorFunctionAsStatement
| AdjacentJSXElements
| ParameterAfterRestParameter
| ElementAfterRestElement
| PropertyAfterRestElement
| DeclareAsync
| DeclareClassElement
| DeclareClassFieldInitializer
| DeclareOpaqueTypeInitializer
| DeclareExportLet
| DeclareExportConst
| DeclareExportType
| DeclareExportInterface
| DuplicateExport of string
| UnsupportedDecorator
| MissingTypeParamDefault
| DuplicateDeclareModuleExports
| AmbiguousDeclareModuleKind
| GetterArity
| SetterArity
| InvalidNonTypeImportInDeclareModule
| ImportTypeShorthandOnlyInPureImport
| ImportSpecifierMissingComma
| ExportSpecifierMissingComma
| MalformedUnicode
| DuplicateConstructor
| DuplicatePrivateFields of string
| InvalidClassMemberName of {
}
| PrivateDelete
| UnboundPrivate of string
| PrivateNotInClass
| SuperPrivate
| YieldInFormalParameters
| AwaitAsIdentifierReference
| YieldAsIdentifierReference
| AmbiguousLetBracket
| LiteralShorthandProperty
| ComputedShorthandProperty
| MethodInDestructuring
| TrailingCommaAfterRestElement
| OptionalChainNew
| OptionalChainTemplate
| NullishCoalescingUnexpectedLogical of string
| WhitespaceInPrivateName
| ThisParamAnnotationRequired
| ThisParamMustBeFirst
| ThisParamMayNotBeOptional
| GetterMayNotHaveThisParam
| SetterMayNotHaveThisParam
| ThisParamBannedInArrowFunctions
| ThisParamBannedInConstructor
module PP : sig ... end