Open sandboxFocus

Constructor ScopedDiagnosticSink

ScopedDiagnosticSink(IDiagnosticSink, IDiagnosticSource, IDiagnosticLocation?, IDeclaration?)

Initializes a new instance of the ScopedDiagnosticSink struct.

Declaration
public ScopedDiagnosticSink(IDiagnosticSink sink, IDiagnosticSource source, IDiagnosticLocation? defaultTargetLocation, IDeclaration? defaultTargetDeclaration)
Parameters
Type Name Description
IDiagnosticSink sink

The underlying diagnostic sink.

IDiagnosticSource source

The source of diagnostics, suppressions, or code fixes.

IDiagnosticLocation defaultTargetLocation

The default location on which diagnostics or code fixes will be reported or suppressed.

IDeclaration defaultTargetDeclaration

The default declaration on which diagnostics or code fixes will be reported or suppressed.