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.

Commit
d0dfdee2740fb35ed4687a569af3c1c955b818f2
Author
Kiro (high) <noreply@kiro.dev>
Author date
Committer
Marius Peter <dev@marius-peter.com>
Committer date
lib/org.ml
index 454d673a..3f853ae7 100644..100644
@@ -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, [])