Restore naming of alias sequence lengths
Fields aren't stored in sequences now, so the max length is back to being just for aliases.
This commit is contained in:
parent
d8a2c0dda2
commit
79d90f0d3e
6 changed files with 11 additions and 11 deletions
|
|
@ -83,7 +83,7 @@ ts_language_enabled_external_tokens(const TSLanguage *self,
|
|||
static inline const TSSymbol *
|
||||
ts_language_alias_sequence(const TSLanguage *self, uint32_t child_info_id) {
|
||||
return child_info_id > 0 ?
|
||||
self->alias_sequences + child_info_id * self->max_child_info_production_length :
|
||||
self->alias_sequences + child_info_id * self->max_alias_sequence_length :
|
||||
NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -914,7 +914,7 @@ void ts_subtree__print_dot_graph(const Subtree *self, uint32_t start_offset,
|
|||
|
||||
uint32_t child_start_offset = start_offset;
|
||||
uint32_t child_info_offset =
|
||||
language->max_child_info_production_length *
|
||||
language->max_alias_sequence_length *
|
||||
ts_subtree_child_info_id(*self);
|
||||
for (uint32_t i = 0, n = ts_subtree_child_count(*self); i < n; i++) {
|
||||
const Subtree *child = &self->ptr->children[i];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue