diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2014-12-13 18:41:02 +1300 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2014-12-24 09:12:45 +1300 |
| commit | 8a357e1d87971574817a033e5467785402d5fcfb (patch) | |
| tree | 7572e05c56f1a6f49964a24610c1c6c949b57c17 /src/libsyntax/visit.rs | |
| parent | 53c5fcb99fc8c62b8723032280fab3dc06fef973 (diff) | |
| download | rust-8a357e1d87971574817a033e5467785402d5fcfb.tar.gz rust-8a357e1d87971574817a033e5467785402d5fcfb.zip | |
Add syntax for ranges
Diffstat (limited to 'src/libsyntax/visit.rs')
| -rw-r--r-- | src/libsyntax/visit.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libsyntax/visit.rs b/src/libsyntax/visit.rs index 9938feb171e..4cc93467a7c 100644 --- a/src/libsyntax/visit.rs +++ b/src/libsyntax/visit.rs @@ -871,6 +871,10 @@ pub fn walk_expr<'v, V: Visitor<'v>>(visitor: &mut V, expression: &'v Expr) { walk_expr_opt(visitor, start); walk_expr_opt(visitor, end) } + ExprRange(ref start, ref end) => { + visitor.visit_expr(&**start); + walk_expr_opt(visitor, end) + } ExprPath(ref path) => { visitor.visit_path(path, expression.id) } |
