package flow_parser

  1. Overview
  2. Docs
The Flow parser is a JavaScript parser written in OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

v0.268.0.tar.gz
md5=b179a80aea922c4afbe1fe8a15b17770
sha512=70afc08a1c9319e8e22e33dedef49fde84fbe513ddd40f218756d6b551a6986334c1c2d2402ba0310084f9185a3de8d8bb538b937130ed8a3aca71f10450bcd0

doc/flow_parser/Parse_error/index.html

Module Parse_errorSource

Sourcetype 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
  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. | MethodInDestructuring
  74. | MissingJSXClosingTag of string
  75. | MissingTypeParam
  76. | MissingTypeParamDefault
  77. | MultipleDefaultsInSwitch
  78. | NewlineAfterThrow
  79. | NewlineBeforeArrow
  80. | NoCatchOrFinally
  81. | NoUninitializedConst
  82. | NoUninitializedDestructuring
  83. | NullishCoalescingUnexpectedLogical of string
  84. | OptionalChainNew
  85. | OptionalChainTemplate
  86. | ParameterAfterRestParameter
  87. | PrivateDelete
  88. | PrivateNotInClass
  89. | PropertyAfterRestElement
  90. | Redeclaration of string * string
  91. | SetterArity
  92. | SetterMayNotHaveThisParam
  93. | StrictCatchVariable
  94. | StrictDelete
  95. | StrictDuplicateProperty
  96. | StrictFunctionName
  97. | StrictLHSAssignment
  98. | StrictLHSPostfix
  99. | StrictLHSPrefix
  100. | StrictModeWith
  101. | StrictNonOctalLiteral
  102. | StrictOctalLiteral
  103. | StrictParamDupe
  104. | StrictParamName
  105. | StrictParamNotSimple
  106. | StrictReservedWord
  107. | StrictVarName
  108. | SuperPrivate
  109. | TSAbstractClass
  110. | TSClassVisibility of [ `Public | `Private | `Protected ]
  111. | TSTemplateLiteralType
  112. | ThisParamAnnotationRequired
  113. | ThisParamBannedInArrowFunctions
  114. | ThisParamBannedInConstructor
  115. | ThisParamMayNotBeOptional
  116. | ThisParamMustBeFirst
  117. | TrailingCommaAfterRestElement
  118. | UnboundPrivate of string
  119. | Unexpected of string
  120. | UnexpectedEOS
  121. | UnexpectedExplicitInexactInObject
  122. | UnexpectedOpaqueTypeAlias
  123. | UnexpectedProto
  124. | UnexpectedReserved
  125. | UnexpectedReservedType
  126. | UnexpectedSpreadType
  127. | UnexpectedStatic
  128. | UnexpectedSuper
  129. | UnexpectedSuperCall
  130. | UnexpectedTokenWithSuggestion of string * string
  131. | UnexpectedTypeAlias
  132. | UnexpectedTypeAnnotation
  133. | UnexpectedTypeDeclaration
  134. | UnexpectedTypeExport
  135. | UnexpectedTypeImport
  136. | UnexpectedTypeInterface
  137. | UnexpectedVariance
  138. | UnexpectedWithExpected of string * string
  139. | UnknownLabel of string
  140. | UnsupportedDecorator
  141. | UnterminatedRegExp
  142. | WhitespaceInPrivateName
  143. | YieldAsIdentifierReference
  144. | YieldInFormalParameters
Sourceval compare : t -> t -> Ppx_deriving_runtime.int
Sourceexception Error of Loc.t * t * (Loc.t * t) list
Sourceval error : Loc.t -> t -> 'a
Sourcemodule PP : sig ... end
OCaml

Innovation. Community. Security.