TreeSitterHighlightBuffer class final

Dart ownership wrapper for the C facade's TSHighlightBuffer.

Like the native struct, each buffer owns one reusable highlighter and one reusable renderer for its entire live lifetime.

Constructors

TreeSitterHighlightBuffer()

Properties

content List<int>
no setter
hashCode int
The hash code for this object.
no setterinherited
length int
no setter
lineCount int
no setter
lineOffsets List<int>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Releases the owned buffers. Native use-after-delete is undefined; Dart reports it deterministically as StateError.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(Iterable<TreeSitterHighlightEvent> events, List<int> source, TreeSitterHighlightAttributeCallback attributeCallback) → void
reset() → void
toString() String
A string representation of this object.
inherited

Operators

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