grammar property

TreeSitterGrammar get grammar

Compatibility accessor for callers that require an assigned language.

Implementation

TreeSitterGrammar get grammar {
  _checkNotDisposed();
  return _grammar ?? (throw StateError('Parser has no language assigned.'));
}