Get disabled debugging code compiling again

Fixes #303
This commit is contained in:
Max Brunsfeld 2019-03-14 16:50:10 -07:00
parent 006a931ab8
commit 23dfde067e

View file

@ -326,7 +326,7 @@ static inline void iterator_print_state(Iterator *self) {
TreeCursorEntry entry = *array_back(&self->cursor.stack);
TSPoint start = iterator_start_position(self).extent;
TSPoint end = iterator_end_position(self).extent;
const char *name = ts_language_symbol_name(self->language, entry.subtree->symbol);
const char *name = ts_language_symbol_name(self->language, ts_subtree_symbol(*entry.subtree));
printf(
"(%-25s %s\t depth:%u [%u, %u] - [%u, %u])",
name, self->in_padding ? "(p)" : " ",