parseCustomEncodingWithOptions method
TreeSitterTree?
parseCustomEncodingWithOptions(
- TreeSitterByteInputCallback read,
- TreeSitterCustomDecoder decode,
- TreeSitterParseOptions options, {
- TreeSitterTree? oldTree,
- Iterable<
TreeSitterInputEdit> edits = const [], - 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,
);