@@ -87,7 +87,7 @@ macro_rules! ast_fragments {
8787 }
8888
8989 impl AstFragment {
90- pub fn add_placeholders( & mut self , placeholders: & [ NodeId ] ) {
90+ fn add_placeholders( & mut self , placeholders: & [ NodeId ] ) {
9191 if placeholders. is_empty( ) {
9292 return ;
9393 }
@@ -100,14 +100,14 @@ macro_rules! ast_fragments {
100100 }
101101 }
102102
103- pub fn make_opt_expr( self ) -> Option <P <ast:: Expr >> {
103+ pub ( crate ) fn make_opt_expr( self ) -> Option <P <ast:: Expr >> {
104104 match self {
105105 AstFragment :: OptExpr ( expr) => expr,
106106 _ => panic!( "AstFragment::make_* called on the wrong kind of fragment" ) ,
107107 }
108108 }
109109
110- pub fn make_method_receiver_expr( self ) -> P <ast:: Expr > {
110+ pub ( crate ) fn make_method_receiver_expr( self ) -> P <ast:: Expr > {
111111 match self {
112112 AstFragment :: MethodReceiverExpr ( expr) => expr,
113113 _ => panic!( "AstFragment::make_* called on the wrong kind of fragment" ) ,
@@ -125,7 +125,7 @@ macro_rules! ast_fragments {
125125 T :: fragment_to_output( self )
126126 }
127127
128- pub fn mut_visit_with<F : MutVisitor >( & mut self , vis: & mut F ) {
128+ pub ( crate ) fn mut_visit_with<F : MutVisitor >( & mut self , vis: & mut F ) {
129129 match self {
130130 AstFragment :: OptExpr ( opt_expr) => {
131131 visit_clobber( opt_expr, |opt_expr| {
@@ -958,7 +958,7 @@ pub fn parse_ast_fragment<'a>(
958958 } )
959959}
960960
961- pub fn ensure_complete_parse < ' a > (
961+ pub ( crate ) fn ensure_complete_parse < ' a > (
962962 parser : & Parser < ' a > ,
963963 macro_path : & ast:: Path ,
964964 kind_name : & str ,
0 commit comments