CompilerMessage

Swift
public struct CompilerMessage: CustomStringConvertible, Sendable

A diagnostic message generated by the Sass compiler that does not prevent the compilation from succeeding.

Appropriate for display to end users who own the stylesheets.


Topics

Types

enum Kind

Kinds of diagnostic message.

Declaration
Swift
public enum Kind: Sendable

Properties

var kind: Kind

The kind of the message.

Declaration
Swift
public let kind: Kind

var message: String

The text of the message.

Declaration
Swift
public let message: String

var span: Span?

Optionally, the section of stylesheet that triggered the message.

Declaration
Swift
public let span: Span?

var stackTrace: String?

The stack trace through the compiler input stylesheets that led to the message.

Declaration
Swift
public let stackTrace: String?

var description: String

A rich multi-line user-readable description of this error, containing the message, span, and stacktrace. This is provided by the underlying Sass compiler, format controlled using CompilerMessageStyle.

Declaration
Swift
public let description: String