package flow_parser

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module SSet : sig ... end
module Lex_mode : sig ... end
type token_sink_result = {
  1. token_loc : Loc.t;
  2. token : Lexer_flow.Token.t;
  3. token_context : Lex_mode.t;
  4. token_value : string;
}
type parse_options = {
  1. esproposal_class_instance_fields : bool;
  2. esproposal_class_static_fields : bool;
  3. esproposal_decorators : bool;
  4. esproposal_export_star_as : bool;
  5. types : bool;
  6. use_strict : bool;
}
val default_parse_options : parse_options
type env
val init_env : ?token_sink:(token_sink_result -> unit) option -> ?parse_options:parse_options option -> Loc.filename option -> string -> env
val in_strict_mode : env -> bool
val last_loc : env -> Loc.t option
val in_export : env -> bool
val labels : env -> SSet.t
val comments : env -> Spider_monkey_ast.Comment.t list
val in_loop : env -> bool
val in_switch : env -> bool
val in_function : env -> bool
val allow_yield : env -> bool
val allow_await : 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 -> Loc.filename option
val should_parse_types : env -> bool
val error_at : env -> (Loc.t * Parse_error.t) -> unit
val error : env -> Parse_error.t -> unit
val error_unexpected : env -> unit
val error_on_decorators : env -> (Loc.t * 'a) list -> unit
val strict_error : env -> Parse_error.t -> unit
val strict_error_at : env -> (Loc.t * Parse_error.t) -> unit
val get_unexpected_error : (Lexer_flow.Token.t * string) -> Parse_error.t
val comment_list : env -> Spider_monkey_ast.Comment.t list -> unit
val error_list : env -> (Loc.t * Parse_error.t) list -> unit
val record_export : env -> (Loc.t * string) -> unit
val with_strict : bool -> env -> env
val with_in_function : bool -> env -> env
val with_allow_yield : bool -> env -> env
val with_allow_await : bool -> env -> env
val with_no_let : bool -> env -> env
val with_in_loop : bool -> env -> env
val with_no_in : bool -> env -> env
val with_no_anon_function_type : bool -> env -> env
val with_no_new : bool -> env -> env
val with_in_switch : bool -> env -> env
val with_in_export : bool -> env -> env
val with_no_call : bool -> env -> env
val with_error_callback : (env -> Parse_error.t -> unit) -> env -> env
val without_error_callback : env -> env
val add_label : env -> string -> env
val enter_function : env -> async:bool -> generator:bool -> env
val is_future_reserved : string -> bool
val is_strict_reserved : string -> bool
val is_restricted : string -> bool
module Peek : sig ... end
module Eat : sig ... end
module Expect : sig ... end
module Try : sig ... end
OCaml

Innovation. Community. Security.