Movatterモバイル変換


[0]ホーム

URL:


D Logo
Menu
Search

Library Reference

version 2.112.0

overview

Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly 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.
Authors:
Walter Bright
License:
Boost License 1.0

Sourceerrorsink.d

Documentationhttps://dlang.org/phobos/dmd_errorsink.html

Coveragehttps://codecov.io/gh/dlang/dmd/src/master/compiler/src/dmd/errorsink.d

abstract classErrorSink;
Where error/warning/deprecation messages go.
nothrow voidplugSink();
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
classErrorSinkNull:dmd.errorsink.ErrorSink;
Just ignores the messages.
classErrorSinkLatch:dmd.errorsink.ErrorSinkNull;
Ignores the messages, but setssawErrors for any calls toerror()
classErrorSinkStderr:dmd.errorsink.ErrorSink;
Simplest implementation, just sends messages to stderr. See also: ErrorSinkCompiler.
Copyright © 1999-2026 by theD Language Foundation | Page generated byDdoc on Fri Feb 20 12:43:29 2026

[8]ページ先頭

©2009-2026 Movatter.jp