mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Rename FnDef -> Fn
This commit is contained in:
parent
3e1e6227ca
commit
1142112c70
244 changed files with 683 additions and 675 deletions
|
@ -471,6 +471,7 @@ impl Field {
|
|||
"::" => "coloncolon",
|
||||
"#" => "pound",
|
||||
"?" => "question_mark",
|
||||
"," => "comma",
|
||||
_ => name,
|
||||
};
|
||||
format_ident!("{}_token", name)
|
||||
|
@ -599,13 +600,9 @@ fn lower_rule(acc: &mut Vec<Field>, grammar: &Grammar, rule: &Rule) {
|
|||
}
|
||||
}
|
||||
|
||||
// (T (',' T)* ','?)?
|
||||
// (T (',' T)* ','?)
|
||||
fn lower_comma_list(acc: &mut Vec<Field>, grammar: &Grammar, rule: &Rule) -> bool {
|
||||
let rule = match rule {
|
||||
Rule::Opt(it) => it,
|
||||
_ => return false,
|
||||
};
|
||||
let rule = match &**rule {
|
||||
Rule::Seq(it) => it,
|
||||
_ => return false,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue