@@ -662,11 +662,11 @@ fn expand_non_macro_stmt(s: &Stmt, fld: &mut MacroExpander)
662
662
// from a given thingy and puts them in a mutable
663
663
// array (passed in to the traversal).
664
664
#[ deriving( Clone ) ]
665
- pub struct NewNameFinderContext {
665
+ struct NameFinderContext {
666
666
ident_accumulator : Vec < ast:: Ident > ,
667
667
}
668
668
669
- impl Visitor < ( ) > for NewNameFinderContext {
669
+ impl Visitor < ( ) > for NameFinderContext {
670
670
fn visit_pat ( & mut self , pattern : & ast:: Pat , _: ( ) ) {
671
671
match * pattern {
672
672
// we found a pat_ident!
@@ -703,8 +703,8 @@ impl Visitor<()> for NewNameFinderContext {
703
703
// return a visitor that extracts the pat_ident paths
704
704
// from a given thingy and puts them in a mutable
705
705
// array (passed in to the traversal)
706
- pub fn new_name_finder ( idents : Vec < ast:: Ident > ) -> NewNameFinderContext {
707
- NewNameFinderContext {
706
+ fn new_name_finder ( idents : Vec < ast:: Ident > ) -> NameFinderContext {
707
+ NameFinderContext {
708
708
ident_accumulator : idents,
709
709
}
710
710
}
@@ -1012,7 +1012,7 @@ fn original_span(cx: &ExtCtxt) -> Gc<codemap::ExpnInfo> {
1012
1012
1013
1013
#[ cfg( test) ]
1014
1014
mod test {
1015
- use super :: * ;
1015
+ use super :: { new_name_finder , expand_crate , contains_macro_escape } ;
1016
1016
use ast;
1017
1017
use ast:: { Attribute_ , AttrOuter , MetaWord } ;
1018
1018
use attr;
@@ -1032,11 +1032,11 @@ mod test {
1032
1032
// from a given thingy and puts them in a mutable
1033
1033
// array (passed in to the traversal)
1034
1034
#[ deriving( Clone ) ]
1035
- struct NewPathExprFinderContext {
1035
+ struct PathExprFinderContext {
1036
1036
path_accumulator : Vec < ast:: Path > ,
1037
1037
}
1038
1038
1039
- impl Visitor < ( ) > for NewPathExprFinderContext {
1039
+ impl Visitor < ( ) > for PathExprFinderContext {
1040
1040
1041
1041
fn visit_expr ( & mut self , expr : & ast:: Expr , _: ( ) ) {
1042
1042
match * expr {
@@ -1052,8 +1052,8 @@ mod test {
1052
1052
// return a visitor that extracts the paths
1053
1053
// from a given thingy and puts them in a mutable
1054
1054
// array (passed in to the traversal)
1055
- pub fn new_path_finder ( paths : Vec < ast:: Path > ) -> NewPathExprFinderContext {
1056
- NewPathExprFinderContext {
1055
+ fn new_path_finder ( paths : Vec < ast:: Path > ) -> PathExprFinderContext {
1056
+ PathExprFinderContext {
1057
1057
path_accumulator : paths
1058
1058
}
1059
1059
}
0 commit comments