Skip to content

Commit 8635190

Browse files
committed
Keep only .mmd source for full diagram (no SVG)
1 parent b895d98 commit 8635190

File tree

7 files changed

+9
-11
lines changed

7 files changed

+9
-11
lines changed

analysis/reanalyze/ARCHITECTURE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ Files → file_data → decls, annotations, refs → live (fixpoint) → dead/li
235235
236236
![Reactive Pipeline](diagrams/reactive-pipeline.svg)
237237

238-
This is a high-level view (~25 nodes). See also the [full detailed diagram](diagrams/reactive-pipeline-full.svg) with all 44 nodes (auto-generated via `-mermaid` flag).
238+
This is a high-level view (~25 nodes). See also the [full detailed diagram source](diagrams/reactive-pipeline-full.mmd) with all 44 nodes (auto-generated via `-mermaid` flag).
239239

240240
Key stages:
241241

analysis/reanalyze/diagrams/reactive-pipeline-full.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

analysis/reanalyze/src/ReactiveDeclRefs.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ let create ~(decls : (Lexing.position, Decl.t) Reactive.t)
4343
in
4444

4545
let type_decl_refs : (Lexing.position, PosSet.t) Reactive.t =
46-
Reactive.join ~name:"decl_refs.type_decl_refs" type_refs_from
47-
decls_by_file
46+
Reactive.join ~name:"decl_refs.type_decl_refs" type_refs_from decls_by_file
4847
~key_of:(fun posFrom _targets -> posFrom.Lexing.pos_fname)
4948
~f:(fun posFrom targets decls_opt ->
5049
match decls_opt with

analysis/reanalyze/src/ReactiveExceptionRefs.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ let create ~(decls : (Lexing.position, Decl.t) Reactive.t)
4444

4545
(* Step 2: Join exception_refs with exception_decls *)
4646
let resolved_refs =
47-
Reactive.join ~name:"exc_refs.resolved_refs" exception_refs
48-
exception_decls
47+
Reactive.join ~name:"exc_refs.resolved_refs" exception_refs exception_decls
4948
~key_of:(fun path _loc_from -> path)
5049
~f:(fun _path loc_from loc_to_opt ->
5150
match loc_to_opt with

analysis/reanalyze/src/ReactiveMerge.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ type t = {
2121

2222
(** {1 Creation} *)
2323

24-
let create (source : (string, DceFileProcessing.file_data option) Reactive.t)
25-
: t =
24+
let create (source : (string, DceFileProcessing.file_data option) Reactive.t) :
25+
t =
2626
(* Declarations: (pos, Decl.t) with last-write-wins *)
2727
let decls =
2828
Reactive.flatMap ~name:"decls" source

analysis/reanalyze/src/ReactiveSolver.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ let decl_module_name (decl : Decl.t) : Name.t =
5050

5151
let create ~(decls : (Lexing.position, Decl.t) Reactive.t)
5252
~(live : (Lexing.position, unit) Reactive.t)
53-
~(annotations :
54-
(Lexing.position, FileAnnotations.annotated_as) Reactive.t)
53+
~(annotations : (Lexing.position, FileAnnotations.annotated_as) Reactive.t)
5554
~(value_refs_from : (Lexing.position, PosSet.t) Reactive.t option)
5655
~(config : DceConfig.t) : t =
5756
(* dead_decls = decls where NOT in live (reactive join) *)

analysis/reanalyze/src/Reanalyze.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,9 @@ let cli () =
647647
"n Process files in parallel using n domains (0 = sequential, default; \
648648
-1 = auto-detect cores)" );
649649
("-timing", Set Cli.timing, "Report internal timing of analysis phases");
650-
("-mermaid", Set Cli.mermaid, "Output Mermaid diagram of reactive pipeline");
650+
( "-mermaid",
651+
Set Cli.mermaid,
652+
"Output Mermaid diagram of reactive pipeline" );
651653
( "-reactive",
652654
Set Cli.reactive,
653655
"Use reactive analysis (caches processed file_data, skips unchanged \

0 commit comments

Comments
 (0)