package flow_parser

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = {
  1. lex_source : Loc.filename option;
  2. lex_lb : Sedlexing.lexbuf;
  3. lex_bol : bol;
  4. lex_in_comment_syntax : bool;
  5. lex_enable_comment_syntax : bool;
  6. lex_state : lex_state;
}
and bol = {
  1. line : int;
  2. offset : int;
}
and lex_state = {
  1. lex_errors_acc : (Loc.t * Parse_error.t) list;
  2. lex_comments_acc : Ast.Comment.t list;
}
val empty_lex_state : lex_state
val new_lex_env : Loc.filename option -> Sedlexing.lexbuf -> enable_types_in_comments:bool -> t
val get_and_clear_state : t -> t * lex_state
val lexbuf : t -> Sedlexing.lexbuf
val with_lexbuf : lexbuf:Sedlexing.lexbuf -> t -> t
val source : t -> Loc.filename option
val state : t -> lex_state
val line : t -> int
val bol_offset : t -> int
val is_in_comment_syntax : t -> bool
val is_comment_syntax_enabled : t -> bool
val in_comment_syntax : bool -> t -> t
val debug_string_of_lexbuf : 'a -> string
val debug_string_of_lex_env : t -> string
OCaml

Innovation. Community. Security.