package graphql_ppx

  1. Overview
  2. Docs
type source_position = {
  1. index : int;
  2. line : int;
  3. col : int;
}
type 'a spanning = {
  1. item : 'a;
  2. span : span;
}
val origin : source_position
val nopos : source_position
val advance_line : source_position -> source_position
val advance_col : source_position -> source_position
val zero_width : source_position -> 'a -> 'a spanning
val single_width : source_position -> 'a -> 'a spanning
val start_end : source_position -> source_position -> 'a -> 'a spanning
val replace : 'a spanning -> 'b -> 'b spanning
val map : ('a -> 'b) -> 'a spanning -> 'b spanning
val start_pos : 'a spanning -> source_position
val end_pos : 'a spanning -> source_position
type ast_position = {
  1. pos_fname : string;
  2. pos_lnum : int;
  3. pos_bol : int;
  4. pos_cnum : int;
}
type ast_location = {
  1. loc_start : ast_position;
  2. loc_end : ast_position;
  3. loc_ghost : bool;
}
OCaml

Innovation. Community. Security.