MacroExpansionErrorMessage

An error during macro expansion that is described by its message.

MacroExpansionDiagnosticMessages.swift:26
struct MacroExpansionErrorMessage

This type allows macro authors to quickly generate error messages based on a string. For any non-trivial error messages, it is encouraged to define a custom type that conforms to DiagnosticMessage.