package melange
Module Js_parser.Parser_envSource
Source
type 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;
}Source
val init_env :
?token_sink:(token_sink_result -> unit) option ->
?parse_options:parse_options option ->
File_key.t option ->
string ->
env