shouldHalt method
Implementation
bool shouldHalt(int currentByteOffset, {required bool hasError}) =>
progressCallback?.call(
TreeSitterNativeParseState(
payload: payload,
currentByteOffset: currentByteOffset,
hasError: hasError,
),
) ??
false;