Expand description

This crate provides DiagnosticHandler supports diagnostic messages to terminal stderr.

DiagnosticHandler mainly consists of 4 parts:

  • Emitter: Emit the styled string to terminal stderr.
  • Template Loader: Load template files locally and find messages from file contents.
  • A set for Diagnostics: All the diagnostic messages.

For more information about diagnostic, see doc in “compiler_base/error/diagnostic/mod.rs”. For more information about emitter, see doc in “compiler_base/error/src/emitter.rs”. For more information about template loader, see doc in “compiler_base/error/src/diagnostic/diagnostic_message.rs”.

Structs

DiagnosticHandler supports diagnostic messages to terminal stderr.
MessageArgs is the arguments of the interpolated string.