parseUtf8With method
Parses callback-driven UTF-8 input until the callback returns empty.
Implementation
TreeSitterTree parseUtf8With(
TreeSitterUtf8InputCallback read, {
bool annotateLocals = true,
}) => parseNativeInput(
TreeSitterNativeInput(
encoding: TreeSitterInputEncoding.utf8,
read: (_, byteOffset, point) => read(byteOffset, point),
),
annotateLocals: annotateLocals,
)!;