File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed
branches/auto/src/libsyntax/ext Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
13
13
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
14
14
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
15
15
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16
- refs/heads/auto: 96072d6efc110e81ab6e0a70e2bf9a96a53268b6
16
+ refs/heads/auto: a807aa1fca5f1dac03dd9440f735d0e223eef4af
17
17
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
18
18
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
19
19
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
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