StateStack class final

Tokenizer state at a line boundary: the stack of open grammar rules.

It is opaque. Pass the state returned for one line into the next line of the same Grammar. Two equal states produce identical tokens for identical text, so an editor can stop re-tokenizing once the state after an edit converges.

Properties

hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scopes → ScopeStack
The scopes open at this point, for example source.dart comment.block.dart at the end of a line inside a block comment.
no setter

Methods

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.
override