Thread the parser into complete()

Eliminates uses of principal_parser
This commit is contained in:
ridiculousfish
2019-05-04 18:17:18 -07:00
parent 63bdc949ab
commit 923a7ca0f0
8 changed files with 68 additions and 54 deletions

View File

@@ -344,6 +344,8 @@ wcstring parser_t::stack_trace() const {
return trace;
}
std::shared_ptr<parser_t> parser_t::shared() { return shared_from_this(); }
void parser_t::stack_trace_internal(size_t block_idx, wcstring *buff) const {
// Check if we should end the recursion.
if (block_idx >= this->block_count()) return;