This file is indexed.

/usr/lib/ocaml/ocp-indent-lib/indentBlock.mli is in libocp-indent-lib-ocaml-dev 1.4.2-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
(**************************************************************************)
(*                                                                        *)
(*  Copyright 2011 Jun Furuse                                             *)
(*  Copyright 2012,2013 OCamlPro                                          *)
(*                                                                        *)
(*  All rights reserved.This file is distributed under the terms of the   *)
(*  GNU Lesser General Public License version 3.0 with linking            *)
(*  exception.                                                            *)
(*                                                                        *)
(*  TypeRex is distributed in the hope that it will be useful,            *)
(*  but WITHOUT ANY WARRANTY; without even the implied warranty of        *)
(*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *)
(*  Lesser GNU General Public License for more details.                   *)
(*                                                                        *)
(**************************************************************************)

(** Indenter block *)
type t

(** Shift a block by a given offset *)
val shift: t -> int -> t

(** Set the start column of the given block to [column] *)
val set_column: t -> int -> t

(** [reverse block] updates the stack to account for the original indentation,
    assumed as correct. Useful for partial indentation *)
val reverse: t -> t

(** Return the current line offset *)
val offset: t -> int

(** Return the padding of the block, ie expected relative indentation of
    sub-blocks *)
val padding: t -> int

(** Return the block indentation *)
val indent: t -> int

(** Return the block original starting column *)
val original_column: t -> int

(** The empty block *)
val empty: t

(** [update t str tok] computes the new block state after processing
    the token [tok] in block [t]. The next tokens can be observed in
    the stream [str]. *)
val update : IndentConfig.t -> t -> Nstream.t -> Nstream.token -> t

(** Display token and stack of the block *)
val dump: t -> unit

(** [guess_indent line block]
    For indenting empty lines: attempt to guess what the most probable
    indent at this point would be *)
val guess_indent: int -> t -> int

(** A block is considered clean when it is not linked to any parser state (ie
    it's not within a comment, string, or ocamldoc stuff). This is not enough
    for a safe checkpoint: lots of rules depend on the previous/next token to
    decide indentation. *)
val is_clean: t -> bool

(** True only when the block is at the root of the file (the stack is empty, the
    block isn't included in any syntactical construct). Implies is_clean *)
val is_at_top: t -> bool

(** Returns true if the given block is at a top-level declaration level, ie not
    within any expression or type definition, but possibly inside a module,
    signature or class definition. Implies is_clean. Should be safe for
    checkpoints *)
val is_declaration: t -> bool

(** Either we are at a comment, or within an ocamldoc block *)
val is_in_comment: t -> bool