rust/src/libsyntax
Felix S. Klock II 3d83010648 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).
2013-08-15 04:06:17 +02:00
..
ext Switch to new <V:Visitor> visitor (rather than @Visitor). 2013-08-15 04:06:17 +02:00
parse Forbid pub/priv where it has no effect 2013-08-12 23:20:46 -07:00
print libsyntax: Update from @Object to @mut Object as required 2013-08-11 13:23:40 -04:00
util remove obsolete foreach keyword 2013-08-03 22:48:02 -04:00
abi.rs Updated std::Option, std::Either and std::Result 2013-08-05 22:42:21 +02:00
ast.rs std/rustc/rustpkg/syntax: Support the extern mod = ... form 2013-08-09 14:11:50 -07:00
ast_map.rs Switch to new <V:Visitor> visitor (rather than @Visitor). 2013-08-15 04:06:17 +02:00
ast_util.rs Switch to new <V:Visitor> visitor (rather than @Visitor). 2013-08-15 04:06:17 +02:00
attr.rs Forbid pub/priv where it has no effect 2013-08-12 23:20:46 -07:00
codemap.rs Forbid pub/priv where it has no effect 2013-08-12 23:20:46 -07:00
diagnostic.rs libsyntax: Update from @Object to @mut Object as required 2013-08-11 13:23:40 -04:00
fold.rs std: Rename Iterator.transform -> .map 2013-08-10 07:33:21 -07:00
oldvisit.rs rm obsolete for support from the compiler 2013-08-04 00:39:48 -04:00
opt_vec.rs Forbid pub/priv where it has no effect 2013-08-12 23:20:46 -07:00
syntax.rs Add initial support for a new formatting syntax 2013-08-07 19:21:43 -07:00
visit.rs Switch to new <V:Visitor> visitor (rather than @Visitor). 2013-08-15 04:06:17 +02:00