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<
ApplyTok, Syn> , provided by the IncrementalGreenExt extensioneditincrementally, returning the updated tree and the strategy that fired. Convenience forincrementalParse(this, source, edit, …). -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toSource(
) → String -
Available on GreenNode<
Reconstructed source covered by this subtree. See GreenNodeOps.toSource.Tok, Syn> , provided by the GreenNodeExt extension -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override