I’ve been reading the rustc_parser
code to get an idea of how it works. One thing that I cannot figure out, is how the accumulated expected tokens are cleared.
There’s a function on Parser
called clear_tokens
, but I can’t see it called anywhere.
Could someone please explain how, when, where accumulated expected tokens are cleared?