Static Methodswift-package-manager 6.0.1PackagePlugin
error(_:file:line:)
Emits an error with the specified message, and optional file path and line number.
static func error(_ message: String, file: String? = #file, line: Int? = #line)
Emits an error with the specified message, and optional file path and line number.
static func error(_ message: String, file: String? = #file, line: Int? = #line)
s13PackagePlugin11DiagnosticsV5error_4file4lineySS_SSSgSiSgtFZ
What are these?4K979
import PackagePlugin
struct Diagnostics
Emits errors, warnings, and remarks to be shown as a result of running the plugin. After emitting one or more errors, the plugin should return a non-zero exit code.
@frozen struct String
A Unicode string value that is a collection of characters.
@frozen struct Int
A signed integer value type.
static func emit(_ severity: Severity, _ description: String, file: String? = #file, line: Int? = #line)
Emits an error with a specified severity and message, and optional file path and line number.
static func progress(_ message: String)
Emits a progress message
static func remark(_ message: String, file: String? = #file, line: Int? = #line)
Emits a remark with the specified message, and optional file path and line number.
static func warning(_ message: String, file: String? = #file, line: Int? = #line)
Emits a warning with the specified message, and optional file path and line number.
enum Severity
Severity of the diagnostic.