treeSitterDecode function
Invokes a custom decoder with the borrowed input slice unchanged.
This is the method-shaped counterpart of Rust's static Decode::decode
contract. Validation of the returned scalar and byte count belongs to the
input consumer, not to the decoder trait itself.
Implementation
TreeSitterDecodeResult treeSitterDecode(
TreeSitterCustomDecoder decoder,
List<int> bytes,
) => decoder(bytes);