MathNode class sealed

A node of the math syntax tree.

Nodes are immutable and carry the span of source they came from. The tree is syntactic: it records what was written (a fraction, a font change, a delimiter) and leaves every size and position to layout.

Implementers

Properties

children → Iterable<MathNode>
The non-null children.
no setter
hashCode → int
The hash code for this object.
no setterinherited
kind → String
Short name used by dump.
no setter
props → Map<String, Object?>
Scalar attributes, for dump and tooling.
no setter
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 setter
span → SourceSpan
Where in the normalized source this node came from.
final

Methods

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

Operators

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