File tree 2 files changed +13
-0
lines changed
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 {
371
371
syntax_expanders. insert ( intern ( "quote_ty" ) ,
372
372
builtin_normal_expander (
373
373
ext:: quote:: expand_quote_ty) ) ;
374
+ syntax_expanders. insert ( intern ( "quote_method" ) ,
375
+ builtin_normal_expander (
376
+ ext:: quote:: expand_quote_method) ) ;
374
377
syntax_expanders. insert ( intern ( "quote_item" ) ,
375
378
builtin_normal_expander (
376
379
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,
353
353
base:: MacExpr :: new ( expanded)
354
354
}
355
355
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
+
356
366
pub fn expand_quote_stmt ( cx : & mut ExtCtxt ,
357
367
sp : Span ,
358
368
tts : & [ ast:: TokenTree ] )
You can’t perform that action at this time.
0 commit comments