hasReduceAction method

bool hasReduceAction(
  1. int state,
  2. int symbol
)

Exact ts_language_has_reduce_action first-action predicate.

Implementation

bool hasReduceAction(int state, int symbol) {
  final entry = tableEntry(state, symbol);
  return entry.actions.isNotEmpty &&
      entry.actions.first.type == TreeSitterParseActionType.reduce;
}