Contents

emit(_:_:file:line:)

Emits an error with a specified severity and message, and optional file path and line number.

Declaration

static func emit(_ severity: Diagnostics.Severity, _ description: String, file: String? = #file, line: Int? = #line)

Parameters

  • severity:

    The severity of the diagnostic.

  • description:

    The description of the diagnostic.

  • file:

    The file responsible for the diagnostic, that defaults to #file.

  • line:

    The line responsible for the diagnostic, that defaults to #line.

See Also

Emitting Errors and Diagnostics