emit(_:)

Submits a diagnostic to the collector.

Diagnostics.swift:169
func emit(_ diagnostic: Diagnostic) throws

Parameters

diagnostic

The diagnostic to submit.

Throws

An error if the implementing type determines that one should be thrown.