TreeSitterEditableInput class final
Editable piece-based UTF-8 input used by a persistent parser worker.
Mutations splice pieces and never decode or concatenate the whole source.
- Implemented types
Constructors
- TreeSitterEditableInput(String source)
-
factory
- TreeSitterEditableInput.fromBytes(Uint8List bytes)
-
factory
Properties
- byteLength → int
-
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
applyBatch(
TreeSitterEditBatch batch, {required int currentRevision}) → void -
applyEdit(
TreeSitterInputEdit edit) → void - Applies an edit expressed against the current input state.
-
byteAt(
int byteOffset) → int -
override
-
byteOffsetAtUtf16(
int utf16Offset) → int -
override
-
bytesInRange(
int startByte, int endByte) → Uint8List -
override
-
inputEditForUtf16Replacement(
int startUtf16, int oldEndUtf16, String insertedText) → TreeSitterInputEdit - Creates the complete byte/point edit for one editor replacement without requiring the caller to flatten or traverse its source rope.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pointAtByte(
int byteOffset) → TreeSitterPoint -
override
-
text(
) → String -
toString(
) → String -
A string representation of this object.
inherited
-
utf16OffsetAtByte(
int byteOffset) → int -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited