Skip to content

Commit

Permalink
Tree walking: Add missing NodeMut NullTest and TypeCast cases
Browse files Browse the repository at this point in the history
  • Loading branch information
lfittl committed May 31, 2023
1 parent 9479dbd commit cdeae7c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/node_enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,14 @@ impl NodeEnum {
}
});
}
NodeMut::NullTest(e) => {
let e = e.as_mut().unwrap();
if let Some(n) = e.arg.as_mut() {
if let Some(n) = n.node.as_mut() {
iter.push((n.to_mut(), depth, context));
}
}
}
NodeMut::ResTarget(t) => {
let t = t.as_mut().unwrap();
if let Some(n) = t.val.as_mut() {
Expand Down Expand Up @@ -831,6 +839,14 @@ impl NodeEnum {
}
}
}
NodeMut::TypeCast(t) => {
let t = t.as_mut().unwrap();
if let Some(n) = t.arg.as_mut() {
if let Some(n) = n.node.as_mut() {
iter.push((n.to_mut(), depth, context));
}
}
}
//
// from-clause items
//
Expand Down

0 comments on commit cdeae7c

Please sign in to comment.