about summary refs log tree commit diff
path: root/src/rt/sync/timer.cpp
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2013-08-08 14:23:25 +0200
committerFelix S. Klock II <pnkfelix@pnkfx.org>2013-08-15 04:06:17 +0200
commit3d830106482e6096312404572486d11c6350a8f8 (patch)
treec0b220fe84ddfba9ee5d38adfd81027a7378f97c /src/rt/sync/timer.cpp
parent9b9250052c018d073da85b2cb05693fec2efec22 (diff)
downloadrust-3d830106482e6096312404572486d11c6350a8f8.tar.gz
rust-3d830106482e6096312404572486d11c6350a8f8.zip
Switch to new <V:Visitor> visitor (rather than @Visitor).
Alpha-renamed top-level visit_* functions to walk_*.
(Motivation: Distinguish visit action and recursive traversal.)

Abstract over `&mut self` rather than over `@mut self`.

This required some acrobatics, notably the

  `impl<E> Visitor<E> for @mut Visitor<E>`

and corresponding introduction of `@mut Visitor` and some local `let
mut` bindings.

Remove oldvisit reference.

Added default implementations for all of the Visitor trait methods.

Note that both `visit_expr_post` and `visit_ty` are no-op's by
default, just like they are in `oldvisit::default_visitor`.

Refactoring: extract logic to ease swapping visit for oldvisit (hopefully).
Diffstat (limited to 'src/rt/sync/timer.cpp')
0 files changed, 0 insertions, 0 deletions