SyntaxNode class

Red Node. Immutable facade for math nodes.

Description of Roslyn's Red-Green Tree.

SyntaxNode is an immutable facade over GreenNode. It stores absolute information and context parameters of an abstract syntax node which cannot be stored inside GreenNode. Every node of the red tree is evaluated top-down on demand.

Constructors

SyntaxNode({required SyntaxNode? parent, required GreenNode value, required int pos})

Properties

capturedCursor int
GreenNode.capturedCursor
no setter
children List<SyntaxNode?>
Lazily evaluated children of current SyntaxNode
latefinal
hashCode int
The hash code for this object.
no setterinherited
parent SyntaxNode?
final
pos int
final
range TextRange
GreenNode.getRange
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value GreenNode
final
width int
GreenNode.editingWidth
no setter

Methods

buildWidget(MathOptions options) → BuildResult
This is where the actual widget building process happens.
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