Report: allow to save errors and warning for a Language Server use
Currently Report, just print errors and warnings to the standard error and output, but that is not good for a Language Server like GVls serving a client with errors and warnings to allow it to show up to the user in an IED GUI program, for example.
In order to improve this situation is recommended to:
-
Add a GLib.List
holding the errors and warnings, its location, source and message -
Add a CodeContext
parameter to instruct `report' to store them instead of print out. -
Make sure the stored messages are released after they were used by the caller
Edited by Daniel Espinosa Ortiz