mirror of
https://github.com/AdaCore/langkit.git
synced 2026-02-12 12:28:12 -08:00
It may be interesting for file readers to return both decoded contents and also diagonstics, for example when doing error recovery while transcoding the source buffer. The Read primitives currently does not allow this: Contents is considered uninitialized when Diagnostics is not empty. Always expect Contents to be initialized instead to support this case. TN: VA17-001