jon.recoil.org

Module Js_of_ocaml_compiler.Javascript

module Num : sig ... end
module Label : sig ... end
type location =
  1. | Pi of Js_of_ocaml_compiler.Parse_info.t
  2. | N
  3. | U
type early_error = {
  1. loc : Js_of_ocaml_compiler.Parse_info.t;
  2. reason : string option;
}
and element =
  1. | ElementHole
  2. | Element of Js_of_ocaml_compiler.Javascript.expression
  3. | ElementSpread of Js_of_ocaml_compiler.Javascript.expression
and binop =
  1. | Eq
  2. | StarEq
  3. | SlashEq
  4. | ModEq
  5. | PlusEq
  6. | MinusEq
  7. | LslEq
  8. | AsrEq
  9. | LsrEq
  10. | BandEq
  11. | BxorEq
  12. | BorEq
  13. | Or
  14. | OrEq
  15. | And
  16. | AndEq
  17. | Bor
  18. | Bxor
  19. | Band
  20. | EqEq
  21. | NotEq
  22. | EqEqEq
  23. | NotEqEq
  24. | Lt
  25. | Le
  26. | Gt
  27. | Ge
  28. | LtInt
  29. | LeInt
  30. | GtInt
  31. | GeInt
  32. | InstanceOf
  33. | In
  34. | Lsl
  35. | Lsr
  36. | Asr
  37. | Plus
  38. | Minus
  39. | Mul
  40. | Div
  41. | Mod
  42. | Exp
  43. | ExpEq
  44. | Coalesce
  45. | CoalesceEq
and unop =
  1. | Not
  2. | Neg
  3. | Pl
  4. | Typeof
  5. | Void
  6. | Delete
  7. | Bnot
  8. | IncrA
  9. | DecrA
  10. | IncrB
  11. | DecrB
  12. | Await
and expression =
  1. | ESeq of Js_of_ocaml_compiler.Javascript.expression * Js_of_ocaml_compiler.Javascript.expression
  2. | ECond of Js_of_ocaml_compiler.Javascript.expression * Js_of_ocaml_compiler.Javascript.expression * Js_of_ocaml_compiler.Javascript.expression
  3. | EAssignTarget of Js_of_ocaml_compiler.Javascript.assignment_target
  4. | EBin of Js_of_ocaml_compiler.Javascript.binop * Js_of_ocaml_compiler.Javascript.expression * Js_of_ocaml_compiler.Javascript.expression
  5. | EUn of Js_of_ocaml_compiler.Javascript.unop * Js_of_ocaml_compiler.Javascript.expression
  6. | ECall of Js_of_ocaml_compiler.Javascript.expression * Js_of_ocaml_compiler.Javascript.access_kind * Js_of_ocaml_compiler.Javascript.arguments * Js_of_ocaml_compiler.Javascript.location
  7. | ECallTemplate of Js_of_ocaml_compiler.Javascript.expression * Js_of_ocaml_compiler.Javascript.template * Js_of_ocaml_compiler.Javascript.location
  8. | EAccess of Js_of_ocaml_compiler.Javascript.expression * Js_of_ocaml_compiler.Javascript.access_kind * Js_of_ocaml_compiler.Javascript.expression
  9. | EDot of Js_of_ocaml_compiler.Javascript.expression * Js_of_ocaml_compiler.Javascript.access_kind * Js_of_ocaml_compiler.Javascript.identifier
  10. | EDotPrivate of Js_of_ocaml_compiler.Javascript.expression * Js_of_ocaml_compiler.Javascript.access_kind * Js_of_ocaml_compiler.Javascript.identifier
  11. | ENew of Js_of_ocaml_compiler.Javascript.expression * Js_of_ocaml_compiler.Javascript.arguments option * Js_of_ocaml_compiler.Javascript.location
  12. | EVar of Js_of_ocaml_compiler.Javascript.ident
  13. | EFun of Js_of_ocaml_compiler.Javascript.ident option * Js_of_ocaml_compiler.Javascript.function_declaration
  14. | EClass of Js_of_ocaml_compiler.Javascript.ident option * Js_of_ocaml_compiler.Javascript.class_declaration
  15. | EArrow of Js_of_ocaml_compiler.Javascript.function_declaration * bool * Js_of_ocaml_compiler.Javascript.arrow_info
  16. | EStr of Js_of_ocaml_compiler.Stdlib.Utf8_string.t
  17. | ETemplate of Js_of_ocaml_compiler.Javascript.template
  18. | EArr of Js_of_ocaml_compiler.Javascript.array_litteral
  19. | EBool of bool
  20. | ENum of Js_of_ocaml_compiler.Javascript.Num.t
  21. | EObj of Js_of_ocaml_compiler.Javascript.property_list
  22. | ERegexp of string * string option
  23. | EYield of {
    1. delegate : bool;
    2. expr : Js_of_ocaml_compiler.Javascript.expression option;
    }
  24. | EPrivName of Js_of_ocaml_compiler.Javascript.identifier
  25. | CoverParenthesizedExpressionAndArrowParameterList of Js_of_ocaml_compiler.Javascript.early_error
  26. | CoverCallExpressionAndAsyncArrowHead of Js_of_ocaml_compiler.Javascript.early_error
and arrow_info =
  1. | AUnknown
  2. | AUse_parent_fun_context
  3. | ANo_fun_context
and access_kind =
  1. | ANormal
  2. | ANullish
and statement =
  1. | Block of Js_of_ocaml_compiler.Javascript.block
  2. | Variable_statement of Js_of_ocaml_compiler.Javascript.variable_declaration_kind * Js_of_ocaml_compiler.Javascript.variable_declaration list
  3. | Function_declaration of Js_of_ocaml_compiler.Javascript.ident * Js_of_ocaml_compiler.Javascript.function_declaration
  4. | Class_declaration of Js_of_ocaml_compiler.Javascript.ident * Js_of_ocaml_compiler.Javascript.class_declaration
  5. | Empty_statement
  6. | Expression_statement of Js_of_ocaml_compiler.Javascript.expression
  7. | If_statement of Js_of_ocaml_compiler.Javascript.expression * Js_of_ocaml_compiler.Javascript.statement * Js_of_ocaml_compiler.Javascript.location * (Js_of_ocaml_compiler.Javascript.statement * Js_of_ocaml_compiler.Javascript.location) option
  8. | Do_while_statement of Js_of_ocaml_compiler.Javascript.statement * Js_of_ocaml_compiler.Javascript.location * Js_of_ocaml_compiler.Javascript.expression
  9. | While_statement of Js_of_ocaml_compiler.Javascript.expression * Js_of_ocaml_compiler.Javascript.statement * Js_of_ocaml_compiler.Javascript.location
  10. | For_statement of (Js_of_ocaml_compiler.Javascript.expression option, Js_of_ocaml_compiler.Javascript.variable_declaration_kind * Js_of_ocaml_compiler.Javascript.variable_declaration list) Js_of_ocaml_compiler.Javascript.either * Js_of_ocaml_compiler.Javascript.expression option * Js_of_ocaml_compiler.Javascript.expression option * Js_of_ocaml_compiler.Javascript.statement * Js_of_ocaml_compiler.Javascript.location
  11. | ForIn_statement of (Js_of_ocaml_compiler.Javascript.expression, Js_of_ocaml_compiler.Javascript.variable_declaration_kind * Js_of_ocaml_compiler.Javascript.for_binding) Js_of_ocaml_compiler.Javascript.either * Js_of_ocaml_compiler.Javascript.expression * Js_of_ocaml_compiler.Javascript.statement * Js_of_ocaml_compiler.Javascript.location
  12. | ForOf_statement of (Js_of_ocaml_compiler.Javascript.expression, Js_of_ocaml_compiler.Javascript.variable_declaration_kind * Js_of_ocaml_compiler.Javascript.for_binding) Js_of_ocaml_compiler.Javascript.either * Js_of_ocaml_compiler.Javascript.expression * Js_of_ocaml_compiler.Javascript.statement * Js_of_ocaml_compiler.Javascript.location
  13. | ForAwaitOf_statement of (Js_of_ocaml_compiler.Javascript.expression, Js_of_ocaml_compiler.Javascript.variable_declaration_kind * Js_of_ocaml_compiler.Javascript.for_binding) Js_of_ocaml_compiler.Javascript.either * Js_of_ocaml_compiler.Javascript.expression * Js_of_ocaml_compiler.Javascript.statement * Js_of_ocaml_compiler.Javascript.location
  14. | Continue_statement of Js_of_ocaml_compiler.Javascript.Label.t option
  15. | Break_statement of Js_of_ocaml_compiler.Javascript.Label.t option
  16. | Return_statement of Js_of_ocaml_compiler.Javascript.expression option * Js_of_ocaml_compiler.Javascript.location
  17. | With_statement of Js_of_ocaml_compiler.Javascript.expression * Js_of_ocaml_compiler.Javascript.statement * Js_of_ocaml_compiler.Javascript.location
  18. | Labelled_statement of Js_of_ocaml_compiler.Javascript.Label.t * Js_of_ocaml_compiler.Javascript.statement * Js_of_ocaml_compiler.Javascript.location
  19. | Switch_statement of Js_of_ocaml_compiler.Javascript.expression * Js_of_ocaml_compiler.Javascript.case_clause list * Js_of_ocaml_compiler.Javascript.statement_list option * Js_of_ocaml_compiler.Javascript.case_clause list
  20. | Throw_statement of Js_of_ocaml_compiler.Javascript.expression
  21. | Try_statement of Js_of_ocaml_compiler.Javascript.block * (Js_of_ocaml_compiler.Javascript.formal_parameter option * Js_of_ocaml_compiler.Javascript.block) option * Js_of_ocaml_compiler.Javascript.block option
  22. | Debugger_statement
  23. | Import of Js_of_ocaml_compiler.Javascript.import * Js_of_ocaml_compiler.Parse_info.t
  24. | Export of Js_of_ocaml_compiler.Javascript.export * Js_of_ocaml_compiler.Parse_info.t
and ('left, 'right) either =
  1. | Left of 'left
  2. | Right of 'right
and variable_declaration_kind =
  1. | Var
  2. | Let
  3. | Const
  4. | Using
  5. | AwaitUsing
and function_kind = {
  1. async : bool;
  2. generator : bool;
}
and ('a, 'b) list_with_rest = {
  1. list : 'a list;
  2. rest : 'b option;
}
and array_target_elt =
  1. | TargetElementId of Js_of_ocaml_compiler.Javascript.ident * Js_of_ocaml_compiler.Javascript.initialiser option
  2. | TargetElementHole
  3. | TargetElement of Js_of_ocaml_compiler.Javascript.expression
  4. | TargetElementSpread of Js_of_ocaml_compiler.Javascript.expression
and assignment_target =
  1. | ObjectTarget of Js_of_ocaml_compiler.Javascript.object_target_elt list
  2. | ArrayTarget of Js_of_ocaml_compiler.Javascript.array_target_elt list
and ident_prop =
  1. | Prop_and_ident of Js_of_ocaml_compiler.Javascript.ident
val is_ident : string -> bool