package melange
Module Js_parser.Parser_envSource
Source
type parse_options = {components : bool;enums : bool;(*enable parsing of Flow enums
*)pattern_matching : bool;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;assert_operator : bool;
}Source
val init_env :
?token_sink:(token_sink_result -> unit) option ->
?parse_options:parse_options option ->
File_key.t option ->
string ->
env