Prune unneeded stack versions based on a depth criteria

This commit is contained in:
Max Brunsfeld 2017-06-30 17:46:11 -07:00
parent d6579956f5
commit eccb3893eb
4 changed files with 20 additions and 2 deletions

View file

@ -384,6 +384,7 @@ ErrorStatus ts_stack_error_status(const Stack *self, StackVersion version) {
.cost = head->node->error_cost,
.count = head->node->error_count,
.push_count = head->push_count,
.depth = head->depth,
};
}