The diagnostics object controls the output of warnings and errors generated
by the compiler during the lexing, parsing and semantic analysis phases.
It also tracks the number of warnings and errors generated for flow control.
This implementation is NOT thread-safe. Messages from different threads may
be interleaved.
Diagnostics | Instead of writing errors, warnings and lints generated in the different
compiler stages directly to stdout, they are collected in this object.
|
Message | |
Printable | This abstraction allows us to call the diagnostics API with pretty
much everything.
|