Js_parser.Parser_envmodule SSet : Flow_set.S with type elt = stringmodule Lex_mode : sig ... endtype parse_options = {components : bool;enums : bool;enable parsing of Flow enums
*)esproposal_decorators : bool;enable parsing of decorators
*)types : bool;enable parsing of Flow types
*)use_strict : bool;treat the file as strict, without needing a "use strict" directive
*)module_ref_prefix : string option;module_ref_prefix_LEGACY_INTEROP : string option;}val default_parse_options : parse_optionsval init_env :
?token_sink:(token_sink_result -> unit) option ->
?parse_options:parse_options option ->
File_key.t option ->
string ->
envval in_strict_mode : env -> boolval in_export : env -> boolval in_export_default : env -> boolval comments : env -> Loc.t Flow_ast.Comment.t listval in_loop : env -> boolval in_switch : env -> boolval in_formal_parameters : env -> boolval in_function : env -> boolval allow_yield : env -> boolval allow_await : env -> boolval allow_directive : env -> boolval allow_super : env -> allowed_superval has_simple_parameters : env -> boolval no_in : env -> boolval no_call : env -> boolval no_let : env -> boolval no_anon_function_type : env -> boolval no_conditional_type : env -> boolval no_new : env -> boolval errors : env -> (Loc.t * Parse_error.t) listval parse_options : env -> parse_optionsval source : env -> File_key.t optionval should_parse_types : env -> boolval error_at : env -> (Loc.t * Parse_error.t) -> unitval error : env -> Parse_error.t -> unitval error_unexpected : ?expected:string -> env -> unitval error_nameless_declaration : env -> string -> unitval strict_error : env -> Parse_error.t -> unitval strict_error_at : env -> (Loc.t * Parse_error.t) -> unitval error_list : env -> (Loc.t * Parse_error.t) list -> unitval enter_class : env -> unitval exit_class : env -> unitval add_declared_private : env -> string -> unitval consume_comments_until : env -> Loc.position -> unitval with_allow_super : allowed_super -> env -> envval with_error_callback : (env -> Parse_error.t -> unit) -> env -> envval token_is_contextually_reserved : Token.t -> boolval token_is_reserved : Token.t -> boolval token_is_reserved_type : Token.t -> boolval token_is_variance : Token.t -> boolval token_is_strict_reserved : Token.t -> boolmodule Peek : sig ... endmodule Eat : sig ... endmodule Expect : sig ... endmodule Try : sig ... end