rust/compiler/rustc_parse/src/parser
est31 2850116636 Replace parse_[sth]_expr with parse_expr_[sth] function names
This resolves an inconsistency in naming style for functions
on the parser, between functions parsing specific kinds of items
and those for expressions, favoring the parse_item_[sth] style
used by functions for items. There are multiple advantages
of that style:

* functions of both categories are collected in the same place
  in the rustdoc output.
* it helps with autocompletion, as you can narrow down your
  search for a function to those about expressions.
* it mirrors rust's path syntax where less specific things
  come first, then it gets more specific, i.e.
  std::collections::hash_map::Entry

The disadvantage is that it doesn't "read like a sentence"
any more, but I think the advantages weigh more greatly.

This change was mostly application of this command:

sed -i -E 's/(fn |\.)parse_([[:alnum:]_]+)_expr/\1parse_expr_\2/' compiler/rustc_parse/src/parser/*.rs

Plus very minor fixes outside of rustc_parse, and an invocation
of x fmt.
2023-02-24 05:12:03 +01:00
..
attr_wrapper.rs Remove TokenCursorFrame. 2023-02-03 10:06:52 +11:00
attr.rs errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00
diagnostics.rs Replace parse_[sth]_expr with parse_expr_[sth] function names 2023-02-24 05:12:03 +01:00
expr.rs Replace parse_[sth]_expr with parse_expr_[sth] function names 2023-02-24 05:12:03 +01:00
generics.rs Use ThinVec in various AST types. 2023-02-21 11:51:56 +11:00
item.rs Replace parse_[sth]_expr with parse_expr_[sth] function names 2023-02-24 05:12:03 +01:00
mod.rs Use ThinVec in various AST types. 2023-02-21 11:51:56 +11:00
nonterminal.rs rustc_parse: migrate more to diagnostic structs 2023-02-01 21:50:34 +01:00
pat.rs errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00
path.rs Replace parse_[sth]_expr with parse_expr_[sth] function names 2023-02-24 05:12:03 +01:00
stmt.rs Replace parse_[sth]_expr with parse_expr_[sth] function names 2023-02-24 05:12:03 +01:00
ty.rs Replace parse_[sth]_expr with parse_expr_[sth] function names 2023-02-24 05:12:03 +01:00