Report a bugIf you spot a problem with this page, click here to create a Bugzilla issue.
Improve this pageQuickly fork, edit online, and submit a pull request for this page.Requires a signed-in GitHub account. This works well for small changes.If you'd like to make larger changes you may want to consider usinga local clone.
dmd.errorsink
Provides an abstraction for what to do with error messages.
Where error/warning/deprecation messages go.
This will be called to indicate compilation has either finished or terminated, no more errors are possible - it's now the time to print any stored errors.
The default implementation does nothing since most error sinks have no state
class
ErrorSinkNull:
dmd.errorsink.ErrorSink;
Just ignores the messages.
class
ErrorSinkLatch:
dmd.errorsink.ErrorSinkNull;
Ignores the messages, but setssawErrors for any calls toerror()
class
ErrorSinkStderr:
dmd.errorsink.ErrorSink;
Simplest implementation, just sends messages to stderr. See also: ErrorSinkCompiler.