TreeSitterInputEdit class final

One ordered source edit in the coordinate space produced by prior edits.

The byte and point fields match TSInputEdit. The UTF-16 offsets and inserted text make the record self-contained for Dart editor/worker transport without transferring or flattening the complete document.

Constructors

TreeSitterInputEdit({required int startByte, required int oldEndByte, required int newEndByte, required TreeSitterPoint startPosition, required TreeSitterPoint oldEndPosition, required TreeSitterPoint newEndPosition, int? startUtf16, int? oldEndUtf16, int? newEndUtf16, String insertedText = ''})
const
TreeSitterInputEdit.fromMessage(Map<Object?, Object?> message)
factory

Properties

deletedByteLength int
no setter
hashCode int
The hash code for this object.
no setteroverride
insertedByteLength int
no setter
insertedBytes Uint8List
no setter
insertedText String
final
newEndByte int
final
newEndPosition TreeSitterPoint
final
newEndUtf16 int?
final
oldEndByte int
final
oldEndPosition TreeSitterPoint
final
oldEndUtf16 int?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startByte int
final
startPosition TreeSitterPoint
final
startUtf16 int?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMessage() Map<String, Object?>
A structured-clone-safe representation for isolates and web workers.
toNative() → ({int newEndByte, ({int column, int row}) newEndPosition, int oldEndByte, ({int column, int row}) oldEndPosition, int startByte, ({int column, int row}) startPosition})
Converts to native TSInputEdit fields using Rust's narrowing casts.
toString() String
A string representation of this object.
inherited
validatePayload() → void

Operators

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