Module Jsx_parser.JSX

Parameters

Signature

let tag_component_trailing_comments: Js_parser__Parser_env.env => list(Flow_ast.Comment.t(Loc.t));
let expression_container_or_spread_child: Parser_env.env => (Loc.t, Flow_ast.JSX.child'(Loc.t, Loc.t));
let opening_element: Parser_env.env => (Loc.t, result([> `Element(Flow_ast.JSX.Opening.t'(Loc.t, Loc.t)) | `Fragment ], [> `Element(Flow_ast.JSX.Opening.t'(Loc.t, Loc.t)) | `Fragment ]));
let closing_element: Parser_env.env => (Loc.t, [> `Element(Flow_ast.JSX.Closing.t'(Loc.t, Loc.t)) | `Fragment ]);
let element: Parser_env.env => (Loc.t, [ `Element(Flow_ast.JSX.element(Loc.t, Loc.t)) | `Fragment(Flow_ast.JSX.fragment(Loc.t, Loc.t)) ]);
let element_or_fragment: Parser_env.env => (Loc.t, [ `Element(Flow_ast.JSX.element(Loc.t, Loc.t)) | `Fragment(Flow_ast.JSX.fragment(Loc.t, Loc.t)) ]);