@@ -1037,7 +1037,7 @@ impl<'a> Parser<'a> {
10371037 /// Parse a sequence, not including the closing delimiter. The function
10381038 /// f must consume tokens until reaching the next separator or
10391039 /// closing bracket.
1040- fn parse_seq_to_before_end < T , F > ( & mut self ,
1040+ pub fn parse_seq_to_before_end < T , F > ( & mut self ,
10411041 ket : & token:: Token ,
10421042 sep : SeqSep ,
10431043 f : F )
@@ -2108,7 +2108,7 @@ impl<'a> Parser<'a> {
21082108 ExprKind :: AssignOp ( binop, lhs, rhs)
21092109 }
21102110
2111- fn mk_mac_expr ( & mut self , span : Span , m : Mac_ , attrs : ThinVec < Attribute > ) -> P < Expr > {
2111+ pub fn mk_mac_expr ( & mut self , span : Span , m : Mac_ , attrs : ThinVec < Attribute > ) -> P < Expr > {
21122112 P ( Expr {
21132113 id : ast:: DUMMY_NODE_ID ,
21142114 node : ExprKind :: Mac ( codemap:: Spanned { node : m, span : span} ) ,
@@ -7212,7 +7212,7 @@ impl<'a> Parser<'a> {
72127212 } )
72137213 }
72147214
7215- fn parse_optional_str ( & mut self ) -> Option < ( Symbol , ast:: StrStyle , Option < ast:: Name > ) > {
7215+ pub fn parse_optional_str ( & mut self ) -> Option < ( Symbol , ast:: StrStyle , Option < ast:: Name > ) > {
72167216 let ret = match self . token {
72177217 token:: Literal ( token:: Str_ ( s) , suf) => ( s, ast:: StrStyle :: Cooked , suf) ,
72187218 token:: Literal ( token:: StrRaw ( s, n) , suf) => ( s, ast:: StrStyle :: Raw ( n) , suf) ,
0 commit comments