Messages class
This class tracks and prints information, warnings, and errors emitted by the compiler.
Constructors
- Messages({PreprocessorOptions? options, void printHandler(Message obj) = print})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
messages
→ List<
Message> -
final
- options → PreprocessorOptions
-
final
- printHandler → void Function(Message obj)
-
Called on every error. Set to blank function to supress printing.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
error(
String message, SourceSpan? span) → void - Report a compile-time CSS error.
-
info(
String message, SourceSpan span) → void - Report and informational message about what the compiler is doing.
-
mergeMessages(
Messages newMessages) → void -
Merge
newMessages
to this message lsit. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
warning(
String message, SourceSpan? span) → void - Report a compile-time CSS warning.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited