ErrorNode class final

Input that could not be understood. The rest of the formula renders; this node shows raw in the error style.

Inheritance

Constructors

ErrorNode(SourceSpan span, String code, String message, String raw)
Creates an error node.
const

Properties

children → Iterable<MathNode>
The non-null children.
no setterinherited
code → String
Diagnostic code.
final
hashCode → int
The hash code for this object.
no setterinherited
kind → String
Short name used by dump.
no setteroverride
message → String
Human-readable message.
final
props → Map<String, Object?>
Scalar attributes, for dump and tooling.
no setteroverride
raw → String
The offending source text.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
slots → List<(String, MathNode?)>
Named child slots, in source order. Absent children are null.
no setterinherited
span → SourceSpan
Where in the normalized source this node came from.
finalinherited

Methods

dump() → String
A compact, deterministic s-expression of the subtree, for tests and debugging. Spans are omitted.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited