Module Js_of_ocaml_compiler.Javascript
module Num : sig ... endmodule Label : sig ... endtype identifier = Js_of_ocaml_compiler.Stdlib.Utf8_string.ttype ident_string = {name : Js_of_ocaml_compiler.Javascript.identifier;var : Js_of_ocaml_compiler.Code.Var.t option;loc : Js_of_ocaml_compiler.Javascript.location;
}and array_litteral = Js_of_ocaml_compiler.Javascript.element_listand element_list = Js_of_ocaml_compiler.Javascript.element listand element = | ElementHole| Element of Js_of_ocaml_compiler.Javascript.expression| ElementSpread of Js_of_ocaml_compiler.Javascript.expression
and arguments = Js_of_ocaml_compiler.Javascript.argument listand argument = | Arg of Js_of_ocaml_compiler.Javascript.expression| ArgSpread of Js_of_ocaml_compiler.Javascript.expression
and property_list = Js_of_ocaml_compiler.Javascript.property listand property = | Property of Js_of_ocaml_compiler.Javascript.property_name * Js_of_ocaml_compiler.Javascript.expression| PropertySpread of Js_of_ocaml_compiler.Javascript.expression| PropertyMethod of Js_of_ocaml_compiler.Javascript.property_name * Js_of_ocaml_compiler.Javascript.method_| CoverInitializedName of Js_of_ocaml_compiler.Javascript.early_error * Js_of_ocaml_compiler.Javascript.ident * Js_of_ocaml_compiler.Javascript.initialiser
and method_ = | MethodGet of Js_of_ocaml_compiler.Javascript.function_declaration| MethodSet of Js_of_ocaml_compiler.Javascript.function_declaration| Method of Js_of_ocaml_compiler.Javascript.function_declaration
and property_name = | PNI of Js_of_ocaml_compiler.Javascript.identifier| PNS of Js_of_ocaml_compiler.Stdlib.Utf8_string.t| PNN of Js_of_ocaml_compiler.Javascript.Num.t| PComputed of Js_of_ocaml_compiler.Javascript.expression
and expression = | ESeq of Js_of_ocaml_compiler.Javascript.expression * Js_of_ocaml_compiler.Javascript.expression| ECond of Js_of_ocaml_compiler.Javascript.expression * Js_of_ocaml_compiler.Javascript.expression * Js_of_ocaml_compiler.Javascript.expression| EAssignTarget of Js_of_ocaml_compiler.Javascript.assignment_target| EBin of Js_of_ocaml_compiler.Javascript.binop * Js_of_ocaml_compiler.Javascript.expression * Js_of_ocaml_compiler.Javascript.expression| EUn of Js_of_ocaml_compiler.Javascript.unop * Js_of_ocaml_compiler.Javascript.expression| 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| ECallTemplate of Js_of_ocaml_compiler.Javascript.expression * Js_of_ocaml_compiler.Javascript.template * Js_of_ocaml_compiler.Javascript.location| EAccess of Js_of_ocaml_compiler.Javascript.expression * Js_of_ocaml_compiler.Javascript.access_kind * Js_of_ocaml_compiler.Javascript.expression| EDot of Js_of_ocaml_compiler.Javascript.expression * Js_of_ocaml_compiler.Javascript.access_kind * Js_of_ocaml_compiler.Javascript.identifier| EDotPrivate of Js_of_ocaml_compiler.Javascript.expression * Js_of_ocaml_compiler.Javascript.access_kind * Js_of_ocaml_compiler.Javascript.identifier| ENew of Js_of_ocaml_compiler.Javascript.expression * Js_of_ocaml_compiler.Javascript.arguments option * Js_of_ocaml_compiler.Javascript.location| EVar of Js_of_ocaml_compiler.Javascript.ident| EFun of Js_of_ocaml_compiler.Javascript.ident option * Js_of_ocaml_compiler.Javascript.function_declaration| EClass of Js_of_ocaml_compiler.Javascript.ident option * Js_of_ocaml_compiler.Javascript.class_declaration| EArrow of Js_of_ocaml_compiler.Javascript.function_declaration * bool * Js_of_ocaml_compiler.Javascript.arrow_info| EStr of Js_of_ocaml_compiler.Stdlib.Utf8_string.t| ETemplate of Js_of_ocaml_compiler.Javascript.template| EArr of Js_of_ocaml_compiler.Javascript.array_litteral| EBool of bool| ENum of Js_of_ocaml_compiler.Javascript.Num.t| EObj of Js_of_ocaml_compiler.Javascript.property_list| ERegexp of string * string option| EYield of {delegate : bool;expr : Js_of_ocaml_compiler.Javascript.expression option;
}| EPrivName of Js_of_ocaml_compiler.Javascript.identifier| CoverParenthesizedExpressionAndArrowParameterList of Js_of_ocaml_compiler.Javascript.early_error| CoverCallExpressionAndAsyncArrowHead of Js_of_ocaml_compiler.Javascript.early_error
and template = Js_of_ocaml_compiler.Javascript.template_part listand statement = | Block of Js_of_ocaml_compiler.Javascript.block| Variable_statement of Js_of_ocaml_compiler.Javascript.variable_declaration_kind * Js_of_ocaml_compiler.Javascript.variable_declaration list| Function_declaration of Js_of_ocaml_compiler.Javascript.ident * Js_of_ocaml_compiler.Javascript.function_declaration| Class_declaration of Js_of_ocaml_compiler.Javascript.ident * Js_of_ocaml_compiler.Javascript.class_declaration| Empty_statement| Expression_statement of Js_of_ocaml_compiler.Javascript.expression| 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| Do_while_statement of Js_of_ocaml_compiler.Javascript.statement * Js_of_ocaml_compiler.Javascript.location * Js_of_ocaml_compiler.Javascript.expression| While_statement of Js_of_ocaml_compiler.Javascript.expression * Js_of_ocaml_compiler.Javascript.statement * Js_of_ocaml_compiler.Javascript.location| 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| 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| 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| 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| Continue_statement of Js_of_ocaml_compiler.Javascript.Label.t option| Break_statement of Js_of_ocaml_compiler.Javascript.Label.t option| Return_statement of Js_of_ocaml_compiler.Javascript.expression option * Js_of_ocaml_compiler.Javascript.location| With_statement of Js_of_ocaml_compiler.Javascript.expression * Js_of_ocaml_compiler.Javascript.statement * Js_of_ocaml_compiler.Javascript.location| Labelled_statement of Js_of_ocaml_compiler.Javascript.Label.t * Js_of_ocaml_compiler.Javascript.statement * Js_of_ocaml_compiler.Javascript.location| 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| Throw_statement of Js_of_ocaml_compiler.Javascript.expression| 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| Debugger_statement| Import of Js_of_ocaml_compiler.Javascript.import * Js_of_ocaml_compiler.Parse_info.t| Export of Js_of_ocaml_compiler.Javascript.export * Js_of_ocaml_compiler.Parse_info.t
and block = Js_of_ocaml_compiler.Javascript.statement_listand statement_list =
(Js_of_ocaml_compiler.Javascript.statement
* Js_of_ocaml_compiler.Javascript.location)
listand variable_declaration = | DeclIdent of Js_of_ocaml_compiler.Javascript.ident * Js_of_ocaml_compiler.Javascript.initialiser option| DeclPattern of Js_of_ocaml_compiler.Javascript.binding_pattern * Js_of_ocaml_compiler.Javascript.initialiser
and initialiser =
Js_of_ocaml_compiler.Javascript.expression
* Js_of_ocaml_compiler.Javascript.locationand decorator = Js_of_ocaml_compiler.Javascript.expressionand class_declaration = {decorators : Js_of_ocaml_compiler.Javascript.decorator list;extends : Js_of_ocaml_compiler.Javascript.expression option;body : Js_of_ocaml_compiler.Javascript.class_element list;
}and class_element = | CEMethod of Js_of_ocaml_compiler.Javascript.decorator list * bool * Js_of_ocaml_compiler.Javascript.class_element_name * Js_of_ocaml_compiler.Javascript.method_| CEField of Js_of_ocaml_compiler.Javascript.decorator list * bool * Js_of_ocaml_compiler.Javascript.class_element_name * Js_of_ocaml_compiler.Javascript.initialiser option| CEAccessor of Js_of_ocaml_compiler.Javascript.decorator list * bool * Js_of_ocaml_compiler.Javascript.class_element_name * Js_of_ocaml_compiler.Javascript.initialiser option| CEStaticBLock of Js_of_ocaml_compiler.Javascript.statement_list
and class_element_name = | PropName of Js_of_ocaml_compiler.Javascript.property_name| PrivName of Js_of_ocaml_compiler.Javascript.identifier
and formal_parameter = Js_of_ocaml_compiler.Javascript.binding_elementand for_binding = Js_of_ocaml_compiler.Javascript.bindingand binding_element =
Js_of_ocaml_compiler.Javascript.binding
* Js_of_ocaml_compiler.Javascript.initialiser optionand binding = | BindingIdent of Js_of_ocaml_compiler.Javascript.ident| BindingPattern of Js_of_ocaml_compiler.Javascript.binding_pattern
and binding_pattern = | ObjectBinding of (Js_of_ocaml_compiler.Javascript.binding_property, Js_of_ocaml_compiler.Javascript.ident) Js_of_ocaml_compiler.Javascript.list_with_rest| ArrayBinding of (Js_of_ocaml_compiler.Javascript.binding_element option, Js_of_ocaml_compiler.Javascript.binding) Js_of_ocaml_compiler.Javascript.list_with_rest
and object_target_elt = | TargetPropertyId of Js_of_ocaml_compiler.Javascript.ident_prop * Js_of_ocaml_compiler.Javascript.initialiser option| TargetProperty of Js_of_ocaml_compiler.Javascript.property_name * Js_of_ocaml_compiler.Javascript.expression * Js_of_ocaml_compiler.Javascript.initialiser option| TargetPropertySpread of Js_of_ocaml_compiler.Javascript.expression| TargetPropertyMethod of Js_of_ocaml_compiler.Javascript.property_name * Js_of_ocaml_compiler.Javascript.method_
and array_target_elt = | TargetElementId of Js_of_ocaml_compiler.Javascript.ident * Js_of_ocaml_compiler.Javascript.initialiser option| TargetElementHole| TargetElement of Js_of_ocaml_compiler.Javascript.expression| TargetElementSpread of Js_of_ocaml_compiler.Javascript.expression
and assignment_target = | ObjectTarget of Js_of_ocaml_compiler.Javascript.object_target_elt list| ArrayTarget of Js_of_ocaml_compiler.Javascript.array_target_elt list
and binding_property = | Prop_binding of Js_of_ocaml_compiler.Javascript.property_name * Js_of_ocaml_compiler.Javascript.binding_element| Prop_ident of Js_of_ocaml_compiler.Javascript.ident_prop * Js_of_ocaml_compiler.Javascript.initialiser option
and function_body = Js_of_ocaml_compiler.Javascript.statement_listand program = Js_of_ocaml_compiler.Javascript.statement_listand export = | ExportVar of Js_of_ocaml_compiler.Javascript.variable_declaration_kind * Js_of_ocaml_compiler.Javascript.variable_declaration list| ExportFun of Js_of_ocaml_compiler.Javascript.ident * Js_of_ocaml_compiler.Javascript.function_declaration| ExportClass of Js_of_ocaml_compiler.Javascript.ident * Js_of_ocaml_compiler.Javascript.class_declaration| ExportNames of (Js_of_ocaml_compiler.Javascript.ident * Js_of_ocaml_compiler.Stdlib.Utf8_string.t) list| ExportDefaultFun of Js_of_ocaml_compiler.Javascript.ident option * Js_of_ocaml_compiler.Javascript.function_declaration| ExportDefaultClass of Js_of_ocaml_compiler.Javascript.ident option * Js_of_ocaml_compiler.Javascript.class_declaration| ExportDefaultExpression of Js_of_ocaml_compiler.Javascript.expression| ExportFrom of {kind : Js_of_ocaml_compiler.Javascript.export_from_kind;from : Js_of_ocaml_compiler.Stdlib.Utf8_string.t;withClause : Js_of_ocaml_compiler.Javascript.withClause option;
}| CoverExportFrom of Js_of_ocaml_compiler.Javascript.early_error
and export_from_kind = | Export_all of Js_of_ocaml_compiler.Stdlib.Utf8_string.t option| Export_names of (Js_of_ocaml_compiler.Stdlib.Utf8_string.t * Js_of_ocaml_compiler.Stdlib.Utf8_string.t) list
and import = {from : Js_of_ocaml_compiler.Stdlib.Utf8_string.t;kind : Js_of_ocaml_compiler.Javascript.import_kind;withClause : Js_of_ocaml_compiler.Javascript.withClause option;
}and withClause =
(Js_of_ocaml_compiler.Stdlib.Utf8_string.t
* Js_of_ocaml_compiler.Stdlib.Utf8_string.t)
listand import_default = Js_of_ocaml_compiler.Javascript.identand import_kind = | DeferNamespace of Js_of_ocaml_compiler.Javascript.ident| Namespace of Js_of_ocaml_compiler.Javascript.import_default option * Js_of_ocaml_compiler.Javascript.ident| Named of Js_of_ocaml_compiler.Javascript.import_default option * (Js_of_ocaml_compiler.Stdlib.Utf8_string.t * Js_of_ocaml_compiler.Javascript.ident) list| Default of Js_of_ocaml_compiler.Javascript.import_default| SideEffect
and program_with_annots =
(Js_of_ocaml_compiler.Javascript.statement_list
* (Js_of_ocaml_compiler.Js_token.Annot.t * Js_of_ocaml_compiler.Parse_info.t)
list)
listval compare_ident :
Js_of_ocaml_compiler.Javascript.ident ->
Js_of_ocaml_compiler.Javascript.ident ->
intval is_ident' : Js_of_ocaml_compiler.Stdlib.Utf8_string.t -> boolval ident_equal :
Js_of_ocaml_compiler.Javascript.ident ->
Js_of_ocaml_compiler.Javascript.ident ->
boolval ident_unsafe :
?loc:Js_of_ocaml_compiler.Javascript.location ->
?var:Js_of_ocaml_compiler.Code.Var.t ->
Js_of_ocaml_compiler.Javascript.identifier ->
Js_of_ocaml_compiler.Javascript.identval bound_idents_of_params :
Js_of_ocaml_compiler.Javascript.formal_parameter_list ->
Js_of_ocaml_compiler.Javascript.ident listval bound_idents_of_variable_declaration :
Js_of_ocaml_compiler.Javascript.variable_declaration ->
Js_of_ocaml_compiler.Javascript.ident listval bound_idents_of_pattern :
Js_of_ocaml_compiler.Javascript.binding_pattern ->
Js_of_ocaml_compiler.Javascript.ident listval bound_idents_of_binding :
Js_of_ocaml_compiler.Javascript.binding ->
Js_of_ocaml_compiler.Javascript.ident listmodule IdentSet :
Stdlib.Set.S with type elt = Js_of_ocaml_compiler.Javascript.identmodule IdentMap :
Stdlib.Map.S with type key = Js_of_ocaml_compiler.Javascript.identval array :
Js_of_ocaml_compiler.Javascript.expression list ->
Js_of_ocaml_compiler.Javascript.expressionval variable_declaration :
?kind:Js_of_ocaml_compiler.Javascript.variable_declaration_kind ->
(Js_of_ocaml_compiler.Javascript.ident
* Js_of_ocaml_compiler.Javascript.initialiser)
list ->
Js_of_ocaml_compiler.Javascript.statementval list : 'a list -> ('a, _) Js_of_ocaml_compiler.Javascript.list_with_restval early_error :
?reason:string ->
Js_of_ocaml_compiler.Parse_info.t ->
Js_of_ocaml_compiler.Javascript.early_errorval assignment_target_of_expr :
Js_of_ocaml_compiler.Javascript.binop option ->
Js_of_ocaml_compiler.Javascript.expression ->
Js_of_ocaml_compiler.Javascript.expressionval location_equal :
Js_of_ocaml_compiler.Javascript.location ->
Js_of_ocaml_compiler.Javascript.location ->
bool