Skip to content

Commit

Permalink
chore: polishing documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Kakadu <[email protected]>
  • Loading branch information
Kakadu committed Jul 26, 2024
1 parent 0581284 commit 212dc9b
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 21 deletions.
8 changes: 6 additions & 2 deletions review/diff_parser.mli
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
(** Copyright 2021-2023, Kakadu. *)
[@@@ocaml.text "/*"]

(** Copyright 2021-2024, Kakadu. *)

(** SPDX-License-Identifier: LGPL-3.0-or-later *)

[@@@ocaml.text "/*"]

(** Parser of the diff file. The grammar is similar too
diff ::= ( head chunk* )*
See also [file_head] and [a_chunk]. *)
See also {!file_head} and {!a_chunk}. *)
val parse_whole_file : Types.file_info list Angstrom.t

(** Main entry point. Uses [parse_whole_file] under the hood *)
Expand Down
6 changes: 5 additions & 1 deletion review/line_parser.mli
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
(** Copyright 2021-2024, Kakadu and contributors *)
[@@@ocaml.text "/*"]

(** Copyright 2021-2024, Kakadu. *)

(** SPDX-License-Identifier: LGPL-3.0-or-later *)

[@@@ocaml.text "/*"]

(** [run ?info p] trims line break in the input string and runs parser [p]. *)
val run : ?info:string -> 'a Angstrom.t -> 'a Angstrom.t

Expand Down
6 changes: 5 additions & 1 deletion review/types.ml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
(** Copyright 2021-2023, Kakadu. *)
[@@@ocaml.text "/*"]

(** Copyright 2021-2024, Kakadu. *)

(** SPDX-License-Identifier: LGPL-3.0-or-later *)

[@@@ocaml.text "/*"]

type chunk_info =
{ old : int
; old_range : int
Expand Down
16 changes: 0 additions & 16 deletions src/Collected_decls.ml
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
[@@@ocaml.text "/*"]

(** Copyright 2021-2024, Kakadu. *)

(** SPDX-License-Identifier: LGPL-3.0-or-later *)

[@@@ocaml.text "/*"]

open Utils
module StringSet = Set.Make (String)

(** Sonmething like Hastbl is needed **)

(* let rec print_path = function
| Path.Pident ident -> "<ident>(" ^ Ident.unique_toplevel_name ident ^ ")"
| Path.Pdot (lhs, rhs) -> "<arrow>(" ^ print_path lhs ^ " -> " ^ rhs ^ ")"
| Path.Papply (lhs, rhs) -> "<apply>(" ^ print_path lhs ^ " @ " ^ print_path rhs ^ ")"
;; *)

let all_decls = Hashtbl.create 100
let used_decls = Hashtbl.create 100

Expand Down
11 changes: 10 additions & 1 deletion src/Collected_decls.mli
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
(** Global storage for defined names. Is used to detect public but not used library fields.
Mutable. Not thread safe. *)
Mutable. Not thread safe.
See also {!Unused_ML_logger} *)

[@@@ocaml.text "/*"]

(** Copyright 2021-2024, Kakadu. *)

(** SPDX-License-Identifier: LGPL-3.0-or-later *)

[@@@ocaml.text "/*"]

(** Report definition of a value. Usually is called from signature analyzer. *)
val add_just_decl : string -> unit
Expand Down

0 comments on commit 212dc9b

Please sign in to comment.