JanetSimpleExternalScanner class final
Pure-Dart port of tree-sitter-janet-simple's long literal scanner.
The upstream scanner has no payload. It counts the opening backticks and
accepts only the first later run containing that many consecutive
backticks. Its seemingly unusual control flow is preserved deliberately:
whitespace is skipped before checking validity, the token kind is selected
from the optional leading @, and the first non-backtick after the opening
delimiter is consumed before the closing-delimiter loop begins.
- Implemented types
Constructors
Properties
Methods
-
create(
) → JanetSimpleExternalScannerState -
override
-
deserialize(
JanetSimpleExternalScannerState state, Uint8List data) → void -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
scan(
JanetSimpleExternalScannerState state, TreeSitterExternalLexer lexer, List< bool> validSymbols) → bool -
override
-
serialize(
JanetSimpleExternalScannerState state) → Uint8List -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited