reset method

void reset()

Clears resumable parse state. Completed parses and configuration remain.

This releases retained GSS versions, reusable-node traversal, lexer cache, balancing work, and external-scanner payload from an opt-in halt.

Implementation

void reset() {
  _checkNotDisposed();
  _generatedParser?.reset();
  _wasmStore?.reset();
  _hasOutstandingParse = false;
  _streamingDecodedInput = null;
}