rustc_ast::mut_visit

Function visit_token

Source
pub fn visit_token<T: MutVisitor>(vis: &mut T, t: &mut Token)
Expand description

Applies ident visitor if it’s an ident; applies other visits to interpolated nodes. In practice the ident part is not actually used by specific visitors right now, but there’s a test below checking that it works.