mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
rename POS_FIELD -> POS_FIELD_DEF
to match NAMED_FIELD_DEF
This commit is contained in:
parent
3c7acecade
commit
23172a116c
15 changed files with 65 additions and 65 deletions
|
@ -407,7 +407,7 @@ impl<'a, N: AstNode + 'a> Iterator for AstChildren<'a, N> {
|
|||
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub enum StructFlavor<'a> {
|
||||
Tuple(&'a PosFieldList),
|
||||
Tuple(&'a PosFieldDefList),
|
||||
Named(&'a NamedFieldDefList),
|
||||
Unit,
|
||||
}
|
||||
|
@ -416,7 +416,7 @@ impl StructFlavor<'_> {
|
|||
fn from_node<N: AstNode>(node: &N) -> StructFlavor {
|
||||
if let Some(nfdl) = child_opt::<_, NamedFieldDefList>(node) {
|
||||
StructFlavor::Named(nfdl)
|
||||
} else if let Some(pfl) = child_opt::<_, PosFieldList>(node) {
|
||||
} else if let Some(pfl) = child_opt::<_, PosFieldDefList>(node) {
|
||||
StructFlavor::Tuple(pfl)
|
||||
} else {
|
||||
StructFlavor::Unit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue