ClientUtils.DiagnosticsFormat (client_utils v0.1.17)
View SourceSerializes Mix.Task.Compiler.Diagnostic structs to JSON-compatible maps.
Summary
Functions
Encodes a list of diagnostics as JSONL (one JSON object per line).
Converts a diagnostic struct to a plain map suitable for JSON encoding.
Functions
@spec to_jsonl([Mix.Task.Compiler.Diagnostic.t()]) :: iodata()
Encodes a list of diagnostics as JSONL (one JSON object per line).
@spec to_map(Mix.Task.Compiler.Diagnostic.t()) :: map()
Converts a diagnostic struct to a plain map suitable for JSON encoding.