GreenToken<Tok, Syn> class final

Leaf token: kind + raw text.

Inheritance
Available extensions

Constructors

GreenToken(Tok kind, String text)
Creates a token green.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
kind → Tok
The token's classification.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
The token's source text. Concatenated across a tree, this reconstructs the original input.
final
textLength int
Total source-character length of this subtree, in O(1).
no setteroverride

Methods

applyEdit(String source, TextEdit edit, ReparseableParsers<Tok, Syn> parsers, {IncrementalConfig config = const IncrementalConfig()}) IncrementalResult<Tok, Syn>

Available on GreenNode<Tok, Syn>, provided by the IncrementalGreenExt extension

Apply edit incrementally, returning the updated tree and the strategy that fired. Convenience for incrementalParse(this, source, edit, …).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toSource() String

Available on GreenNode<Tok, Syn>, provided by the GreenNodeExt extension

Reconstructed source covered by this subtree. See GreenNodeOps.toSource.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override