[OCaml] Org mode parser.
fix remove dead collector allocation in parse_with_diagnostics
The diagnostic collector was created but never passed to any parsing phase, so diagnostics were always empty. Remove the misleading allocation and return an empty list directly until the diagnostic pipeline is wired through.
lib/org.ml
@@ -53,8 +53,11 @@
53
53
(** Parse an Org Mode document with diagnostic reporting.
54
54
55
55
Returns both the best-effort AST and a list of diagnostics
56
Removed:
for recoverable issues encountered during parsing. *)
56
Added:
for recoverable issues encountered during parsing.
57
Added:
58
Added:
Note: diagnostic collection is not yet wired through the
59
Added:
parsing pipeline. This currently always returns an empty
60
Added:
diagnostic list. *)
57
61
let parse_with_diagnostics input =
58
Removed:
let _collector = Diagnostic.create_collector () in
59
62
let doc = parse input in
60
Removed:
(doc, Diagnostic.to_list _collector)
63
Added:
(doc, [])