pub fn skip_to_statement_end(cursor: &mut Cursor<'_>)Expand description
Skips to the end of the statement the parser gave up on.
Stops just after the next ; at the current bracket depth, or just before the } that
closes the block, whichever comes first. A ; inside brackets is skipped over, because the
two in a for header do not end anything, and a } inside them belongs to a compound
literal or a statement expression and not to the enclosing block.