parseUtf8With method

TreeSitterTree parseUtf8With(
  1. TreeSitterUtf8InputCallback read, {
  2. bool annotateLocals = true,
})

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,
)!;