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 : Lexing.lexbuf;
  3. lex_in_comment_syntax : bool;
  4. lex_enable_comment_syntax : bool;
  5. lex_state : lex_state;
}
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 -> Lexing.lexbuf -> enable_types_in_comments:bool -> t
val get_and_clear_state : t -> t * lex_state
val lexbuf : t -> Lexing.lexbuf
val with_lexbuf : lexbuf:Lexing.lexbuf -> t -> t
val source : t -> Loc.filename option
val state : t -> lex_state
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_lex_env : t -> string