Js_parser.Parser_env
module SSet : Set.S with type elt = string
module Lex_mode : sig ... end
val default_parse_options : parse_options
val init_env :
?token_sink:(token_sink_result -> unit) option ->
?parse_options:parse_options option ->
File_key.t option ->
string ->
env
val in_strict_mode : env -> bool
val in_export : env -> bool
val in_export_default : env -> bool
val comments : env -> Loc.t Flow_ast.Comment.t list
val in_loop : env -> bool
val in_switch : env -> bool
val in_formal_parameters : env -> bool
val in_function : env -> bool
val allow_yield : env -> bool
val allow_await : env -> bool
val allow_directive : env -> bool
val allow_super : env -> allowed_super
val has_simple_parameters : env -> bool
val no_in : env -> bool
val no_call : env -> bool
val no_let : env -> bool
val no_anon_function_type : env -> bool
val no_new : env -> bool
val errors : env -> (Loc.t * Parse_error.t) list
val parse_options : env -> parse_options
val source : env -> File_key.t option
val should_parse_types : env -> bool
val get_unexpected_error : ?expected:string -> Token.t -> Parse_error.t
val error_at : env -> (Loc.t * Parse_error.t) -> unit
val error : env -> Parse_error.t -> unit
val error_unexpected : ?expected:string -> env -> unit
val error_nameless_declaration : env -> string -> unit
val strict_error : env -> Parse_error.t -> unit
val strict_error_at : env -> (Loc.t * Parse_error.t) -> unit
val error_list : env -> (Loc.t * Parse_error.t) list -> unit
val enter_class : env -> unit
val exit_class : env -> unit
val add_declared_private : env -> string -> unit
val consume_comments_until : env -> Loc.position -> unit
val with_allow_super : allowed_super -> env -> env
val with_error_callback : (env -> Parse_error.t -> unit) -> env -> env
val token_is_reserved : Token.t -> bool
val token_is_strict_reserved : Token.t -> bool
val token_is_restricted : Token.t -> bool
module Peek : sig ... end
module Eat : sig ... end
module Expect : sig ... end
module Try : sig ... end