graydon/rust — Issue #1204: Stop walking all of AST on every pass
Author: marijnh
Created: 2011-11-21 08:29:47+00:00
State: open

Most passes aren't interested in, for example, types, yes the default visitor runs through all type nodes on every walk anyway.

We could provide several variants of `default_visitor()`, which descend into different subsets of the AST, and make sure each pass uses the right variant.