package codept-lib

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file uloc.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
type t = { pkg:Pkg.t; loc:Loc.t }
let none = { pkg = Pkg.{ source= Unknown; file=Namespaced.make "Empty" }; loc = Loc.Nowhere }

module Pp = struct

  let simple ppf {pkg;loc} = Pp.fp ppf "%a:%a" Pkg.pp pkg Loc.pp loc

  let tagged ppf l =
    Format_tags.(with_tag Loc) simple ppf l

  let opt ppf l =
    if l == none then ()
    else Pp.fp ppf "%a,@ " tagged l
end