package melange
Toolchain to produce JS from Reason/OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
melange-4.0.0-414.tbz
sha256=3c82c3397608c8bbdfbf5b12c0fe9649d0a25dfa5876772ded6330de31c12c93
sha512=7abf9eab5dacac169ac82698685c3f46ff6c5219cba6b6d14abf915029d89559f38ce7f74ef04055fb31805f5d5aeeb74613a65d1d892a40b585153b95725fea
doc/melange.js_parser/Js_parser/Comment_attachment/index.html
Module Js_parser.Comment_attachment
Source
Source
type trailing_and_remover_result = {
trailing : Loc.t Flow_ast.Comment.t list;
remove_trailing : 'a. 'a -> (Loc.t trailing_comments_remover -> 'a -> 'a) -> 'a;
}
Source
val expression_remove_trailing :
Parser_env.env ->
(Loc.t, Loc.t) Js_parser.Flow_ast_mapper.Ast.Expression.t ->
(Loc.t, Loc.t) Js_parser.Flow_ast_mapper.Ast.Expression.t
Source
val block_remove_trailing :
Parser_env.env ->
(Loc.t * (Loc.t, Loc.t) Js_parser.Flow_ast_mapper.Ast.Statement.Block.t) ->
Loc.t * (Loc.t, Loc.t) Js_parser.Flow_ast_mapper.Ast.Statement.Block.t
Source
val type_annotation_hint_remove_trailing :
Parser_env.env ->
(Loc.t, Loc.t) Js_parser.Flow_ast_mapper.Ast.Type.annotation_or_hint ->
(Loc.t, Loc.t) Js_parser.Flow_ast_mapper.Ast.Type.annotation_or_hint
Source
val component_renders_annotation_remove_trailing :
Parser_env.env ->
(Loc.t, Loc.t)
Js_parser.Flow_ast_mapper.Ast.Type.component_renders_annotation ->
(Loc.t, Loc.t)
Js_parser.Flow_ast_mapper.Ast.Type.component_renders_annotation
Source
val return_annotation_remove_trailing :
Parser_env.env ->
(Loc.t, Loc.t) Js_parser.Flow_ast_mapper.Ast.Function.ReturnAnnot.t ->
(Loc.t, Loc.t) Js_parser.Flow_ast_mapper.Ast.Function.ReturnAnnot.t
Source
val function_params_remove_trailing :
Parser_env.env ->
(Loc.t, Loc.t) Js_parser.Flow_ast_mapper.Ast.Function.Params.t ->
(Loc.t, Loc.t) Js_parser.Flow_ast_mapper.Ast.Function.Params.t
Source
val component_params_remove_trailing :
Parser_env.env ->
(Loc.t, Loc.t)
Js_parser.Flow_ast_mapper.Ast.Statement.ComponentDeclaration.Params.t ->
(Loc.t, Loc.t)
Js_parser.Flow_ast_mapper.Ast.Statement.ComponentDeclaration.Params.t
Source
val object_key_remove_trailing :
Parser_env.env ->
(Loc.t, Loc.t) Js_parser.Flow_ast_mapper.Ast.Expression.Object.Property.key ->
(Loc.t, Loc.t) Js_parser.Flow_ast_mapper.Ast.Expression.Object.Property.key
Source
val generic_type_remove_trailing :
Parser_env.env ->
(Loc.t * (Loc.t, Loc.t) Js_parser.Flow_ast_mapper.Ast.Type.Generic.t) ->
Loc.t * (Loc.t, Loc.t) Js_parser.Flow_ast_mapper.Ast.Type.Generic.t
Source
val generic_type_list_remove_trailing :
Parser_env.env ->
(Loc.t * (Loc.t, Loc.t) Js_parser.Flow_ast_mapper.Ast.Type.Generic.t) list ->
(Loc.t * (Loc.t, Loc.t) Js_parser.Flow_ast_mapper.Ast.Type.Generic.t) list
Source
val class_implements_remove_trailing :
Parser_env.env ->
(Loc.t, Loc.t) Js_parser.Flow_ast_mapper.Ast.Class.Implements.t ->
(Loc.t, Loc.t) Js_parser.Flow_ast_mapper.Ast.Class.Implements.t
Source
val string_literal_remove_trailing :
Parser_env.env ->
(Loc.t * Loc.t Js_parser.Flow_ast_mapper.Ast.StringLiteral.t) ->
Loc.t * Loc.t Js_parser.Flow_ast_mapper.Ast.StringLiteral.t
Source
val statement_add_comments :
(Loc.t, Loc.t) Flow_ast.Statement.t ->
(Loc.t, unit) Flow_ast.Syntax.t option ->
(Loc.t, Loc.t) Flow_ast.Statement.t
Source
val comment_bounds_without_trailing_line_comment :
('a * ('b * Ast.Comment.t') option) ->
'a * ('b * Ast.Comment.t') option
Source
val collect_without_trailing_line_comment :
< comment_bounds : 'a * ('b * Ast.Comment.t') option.. > ->
'a * ('b * Ast.Comment.t') option
Source
val statement_comment_bounds :
(Loc.t, Loc.t) Flow_ast.Statement.t ->
Loc.t Flow_ast.Comment.t option * Loc.t Flow_ast.Comment.t option
Source
val object_property_comment_bounds :
(Loc.t, Loc.t) Ast.Expression.Object.property ->
(Loc.t * Js_parser__Flow_ast.Comment.t') option
* (Loc.t * Ast.Comment.t') option
Source
val object_type_property_comment_bounds :
(Loc.t, Loc.t) Ast.Type.Object.property ->
(Loc.t * Js_parser__Flow_ast.Comment.t') option
* (Loc.t * Ast.Comment.t') option
Source
val object_pattern_property_comment_bounds :
Loc.t ->
(Loc.t, Loc.t) Js_parser.Flow_ast_mapper.Ast.Pattern.Object.property ->
(Loc.t * Js_parser__Flow_ast.Comment.t') option
* (Loc.t * Ast.Comment.t') option
Source
val function_type_param_comment_bounds :
(Loc.t * (Loc.t, Loc.t) Js_parser.Flow_ast_mapper.Ast.Type.Function.Param.t') ->
(Loc.t * Js_parser__Flow_ast.Comment.t') option
* (Loc.t * Ast.Comment.t') option
Source
val function_type_rest_param_comment_bounds :
(Loc.t
* (Loc.t, Loc.t) Js_parser.Flow_ast_mapper.Ast.Type.Function.RestParam.t') ->
(Loc.t * Js_parser__Flow_ast.Comment.t') option
* (Loc.t * Ast.Comment.t') option
Source
val function_type_this_param_comment_bounds :
(Loc.t
* (Loc.t, Loc.t) Js_parser.Flow_ast_mapper.Ast.Type.Function.ThisParam.t') ->
(Loc.t * Js_parser__Flow_ast.Comment.t') option
* (Loc.t * Ast.Comment.t') option
Source
val array_element_comment_bounds :
Loc.t ->
(Loc.t, Loc.t) Js_parser.Flow_ast_mapper.Ast.Expression.Array.element ->
(Loc.t * Js_parser__Flow_ast.Comment.t') option
* (Loc.t * Ast.Comment.t') option
Source
val array_pattern_element_comment_bounds :
Loc.t ->
(Loc.t, Loc.t) Js_parser.Flow_ast_mapper.Ast.Pattern.Array.element ->
(Loc.t * Js_parser__Flow_ast.Comment.t') option
* (Loc.t * Ast.Comment.t') option
Source
val expression_or_spread_comment_bounds :
Loc.t ->
(Loc.t, Loc.t) Js_parser.Flow_ast_mapper.Ast.Expression.expression_or_spread ->
(Loc.t * Js_parser__Flow_ast.Comment.t') option
* (Loc.t * Ast.Comment.t') option
Source
val call_type_arg_comment_bounds :
Loc.t ->
(Loc.t, Loc.t) Js_parser.Flow_ast_mapper.Ast.Expression.CallTypeArg.t ->
(Loc.t * Js_parser__Flow_ast.Comment.t') option
* (Loc.t * Ast.Comment.t') option
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>