mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-15 22:38:10 +00:00
The expected parse tree size is validated for valid parse trees, which is possible even if lex encounters an error. In that case, we were missing recovery tokens, resulting in a crash. AddToken should be the only place we call `token_infos_.push_back`.