parseCustomEncodingWithOptions method

TreeSitterTree? parseCustomEncodingWithOptions(
  1. TreeSitterByteInputCallback read,
  2. TreeSitterCustomDecoder decode,
  3. TreeSitterParseOptions options, {
  4. TreeSitterTree? oldTree,
  5. Iterable<TreeSitterInputEdit> edits = const [],
  6. bool annotateLocals = true,
})

Implementation

TreeSitterTree? parseCustomEncodingWithOptions(
  TreeSitterByteInputCallback read,
  TreeSitterCustomDecoder decode,
  TreeSitterParseOptions options, {
  TreeSitterTree? oldTree,
  Iterable<TreeSitterInputEdit> edits = const [],
  bool annotateLocals = true,
}) => parseNativeInput(
  TreeSitterNativeInput(
    encoding: TreeSitterInputEncoding.custom,
    decode: decode,
    read: (_, byteOffset, point) => read(byteOffset, point),
  ),
  options: options,
  oldTree: oldTree,
  edits: edits,
  annotateLocals: annotateLocals,
);