package flow_parser

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Sedlexing = Flow_sedlexing
type bol = {
  1. line : int;
  2. offset : int;
}
type lex_state = {
  1. lex_errors_acc : (Loc.t * Parse_error.t) list;
}
type t = {
  1. lex_source : File_key.t 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;
  7. lex_last_loc : Loc.t;
}
val empty_lex_state : lex_state
val initial_last_loc : Loc.t
val new_lex_env : File_key.t option -> Sedlexing.lexbuf -> enable_types_in_comments:bool -> t
val clone : t -> t
val lexbuf : t -> Sedlexing.lexbuf
val source : t -> File_key.t 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.