Skip to content

Commit

Permalink
AST Visitor now walks enum discriminant expression
Browse files Browse the repository at this point in the history
  • Loading branch information
ktt3ja committed Dec 16, 2013
1 parent 9eb89a6 commit c810ee8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libsyntax/visit.rs
Expand Up @@ -290,6 +290,10 @@ pub fn walk_variant<E:Clone, V:Visitor<E>>(visitor:&mut V,
env.clone())
}
}
match variant.node.disr_expr {
Some(expr) => visitor.visit_expr(expr, env),
None => ()
}
}

pub fn skip_ty<E, V:Visitor<E>>(_: &mut V, _: &Ty, _: E) {
Expand Down

0 comments on commit c810ee8

Please sign in to comment.