mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01: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`.