forked from facebook/pyre-check
-
Notifications
You must be signed in to change notification settings - Fork 0
/
file.mli
42 lines (25 loc) · 873 Bytes
/
file.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
(** Copyright (c) 2016-present, Facebook, Inc.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree. *)
open Core
open Pyre
type t
[@@deriving eq, show, hash]
val create: ?content: string -> Path.t -> t
val path: t -> Path.t
val content: t -> string option
val lines: t -> (string list) option
val write: t -> unit
exception NonexistentHandle of string
module Handle : sig
type t
[@@deriving compare, eq, show, sexp, hash]
val create: string -> t
val is_stub: t -> bool
val to_path: configuration: Configuration.Analysis.t -> t -> Path.t option
include Hashable with type t := t
module Map: Map.S with type Key.t = t
module Set: Set.S with type Elt.t = t
end
module Set: Set.S with type Elt.t = t
val handle: configuration: Configuration.Analysis.t -> t -> Handle.t