Include trees' dynamic precedence in debug graphs
This commit is contained in:
parent
10111cc206
commit
9f24118b17
1 changed files with 4 additions and 4 deletions
|
|
@ -644,8 +644,7 @@ bool ts_stack_print_dot_graph(Stack *self, const char **symbol_names, FILE *f) {
|
|||
}
|
||||
}
|
||||
|
||||
if (!node)
|
||||
continue;
|
||||
if (!node) continue;
|
||||
all_iterators_done = false;
|
||||
|
||||
fprintf(f, "node_%p [", node);
|
||||
|
|
@ -687,8 +686,9 @@ bool ts_stack_print_dot_graph(Stack *self, const char **symbol_names, FILE *f) {
|
|||
}
|
||||
if (!link.tree->named)
|
||||
fprintf(f, "'");
|
||||
fprintf(f, "\" labeltooltip=\"error_cost: %u\"",
|
||||
link.tree->error_cost);
|
||||
fprintf(f, "\" labeltooltip=\"error_cost: %u\ndynamic_precedence: %u\"",
|
||||
link.tree->error_cost,
|
||||
link.tree->dynamic_precedence);
|
||||
}
|
||||
|
||||
fprintf(f, "];\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue