File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -371,6 +371,9 @@ pub fn syntax_expander_table() -> SyntaxEnv {
371371 syntax_expanders. insert ( intern ( "quote_ty" ) ,
372372 builtin_normal_expander (
373373 ext:: quote:: expand_quote_ty) ) ;
374+ syntax_expanders. insert ( intern ( "quote_method" ) ,
375+ builtin_normal_expander (
376+ ext:: quote:: expand_quote_method) ) ;
374377 syntax_expanders. insert ( intern ( "quote_item" ) ,
375378 builtin_normal_expander (
376379 ext:: quote:: expand_quote_item) ) ;
Original file line number Diff line number Diff line change @@ -353,6 +353,16 @@ pub fn expand_quote_ty(cx: &mut ExtCtxt,
353353 base:: MacExpr :: new ( expanded)
354354}
355355
356+ pub fn expand_quote_method ( cx : & mut ExtCtxt ,
357+ sp : Span ,
358+ tts : & [ ast:: TokenTree ] )
359+ -> Box < base:: MacResult > {
360+ let e_param_colons = cx. expr_none ( sp) ;
361+ let expanded = expand_parse_call ( cx, sp, "parse_method" ,
362+ vec ! ( e_param_colons) , tts) ;
363+ base:: MacExpr :: new ( expanded)
364+ }
365+
356366pub fn expand_quote_stmt ( cx : & mut ExtCtxt ,
357367 sp : Span ,
358368 tts : & [ ast:: TokenTree ] )
You can’t perform that action at this time.
0 commit comments