rust/compiler/rustc_parse/src/parser
Nicholas Nethercote fb5ba8a6d4 Tweak some parser check/eat methods.
The most significant is `check_keyword`: it now only pushes to
`expected_token_types` if the keyword check fails, which matches how all
the other `check` methods work.

The remainder are just tweaks to make these methods more consistent with
each other.
2024-12-19 16:05:41 +11:00
..
mut_visit Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
tokenstream Rename RefTokenTreeCursor. 2024-12-18 10:39:07 +11:00
attr.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
attr_wrapper.rs Introduce InvisibleOrigin on invisible delimiters. 2024-11-21 08:16:54 +11:00
diagnostics.rs Rename Parser::expected_tokens as Parser::expected_token_types. 2024-12-19 16:05:41 +11:00
expr.rs Rename Parser::expected_tokens as Parser::expected_token_types. 2024-12-19 16:05:41 +11:00
generics.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
item.rs Rename Parser::expected_tokens as Parser::expected_token_types. 2024-12-19 16:05:41 +11:00
mod.rs Tweak some parser check/eat methods. 2024-12-19 16:05:41 +11:00
nonterminal.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
pat.rs Auto merge of #134443 - joshtriplett:use-field-init-shorthand, r=lqd,tgross35,nnethercote 2024-12-18 19:16:15 +00:00
path.rs Rename Parser::expected_tokens as Parser::expected_token_types. 2024-12-19 16:05:41 +11:00
stmt.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
tests.rs Rollup merge of #134161 - nnethercote:overhaul-token-cursors, r=spastorino 2024-12-18 22:56:53 +08:00
ty.rs Rename Parser::expected_tokens as Parser::expected_token_types. 2024-12-19 16:05:41 +11:00