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
enum Kind
Properties
var kind: Kind
var kind: Kind
var message: String
var message: String
var span: Span?
var span: Span?
Optionally, the section of stylesheet that triggered the message.
Declaration
Swift
public let span: Span?
var stackTrace: String?
var stackTrace: String?
The stack trace through the compiler input stylesheets that led to the message.
Declaration
Swift
public let stackTrace: String?
var messageID: String?
var messageID: String?
A compiler-specific identifier for the message. For Dart Sass this holds the deprecation ID for deprecation warning messages.
Declaration
Swift
public let messageID: String?
var description: 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