warning(message:location:context:)

Creates a recoverable issue, which doesn’t prevent the generator from continuing.

Diagnostics.swift:68
static func warning(message: String, location: Location? = nil, context: [String : String] = [:]) -> Diagnostic

Parameters

message

The message that describes the warning.

location

Describe the source file that triggered the diagnostic (if known).

context

A set of key-value pairs that help the user understand where the warning occurred.

Returns

A warning diagnostic.