@@ -87,7 +87,7 @@ macro_rules! ast_fragments {
87
87
}
88
88
89
89
impl AstFragment {
90
- pub fn add_placeholders( & mut self , placeholders: & [ NodeId ] ) {
90
+ fn add_placeholders( & mut self , placeholders: & [ NodeId ] ) {
91
91
if placeholders. is_empty( ) {
92
92
return ;
93
93
}
@@ -100,14 +100,14 @@ macro_rules! ast_fragments {
100
100
}
101
101
}
102
102
103
- pub fn make_opt_expr( self ) -> Option <P <ast:: Expr >> {
103
+ pub ( crate ) fn make_opt_expr( self ) -> Option <P <ast:: Expr >> {
104
104
match self {
105
105
AstFragment :: OptExpr ( expr) => expr,
106
106
_ => panic!( "AstFragment::make_* called on the wrong kind of fragment" ) ,
107
107
}
108
108
}
109
109
110
- pub fn make_method_receiver_expr( self ) -> P <ast:: Expr > {
110
+ pub ( crate ) fn make_method_receiver_expr( self ) -> P <ast:: Expr > {
111
111
match self {
112
112
AstFragment :: MethodReceiverExpr ( expr) => expr,
113
113
_ => panic!( "AstFragment::make_* called on the wrong kind of fragment" ) ,
@@ -125,7 +125,7 @@ macro_rules! ast_fragments {
125
125
T :: fragment_to_output( self )
126
126
}
127
127
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 ) {
129
129
match self {
130
130
AstFragment :: OptExpr ( opt_expr) => {
131
131
visit_clobber( opt_expr, |opt_expr| {
@@ -958,7 +958,7 @@ pub fn parse_ast_fragment<'a>(
958
958
} )
959
959
}
960
960
961
- pub fn ensure_complete_parse < ' a > (
961
+ pub ( crate ) fn ensure_complete_parse < ' a > (
962
962
parser : & Parser < ' a > ,
963
963
macro_path : & ast:: Path ,
964
964
kind_name : & str ,
0 commit comments