Skip to content

Commit ab5541d

Browse files
committed
---
yaml --- r: 124479 b: refs/heads/auto c: a807aa1 h: refs/heads/master i: 124477: c0fcefb 124475: a286845 124471: 24cbba5 124463: ceeadd5 124447: f6d4f27 124415: 1deb008 v: v3
1 parent 3466927 commit ab5541d

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 96072d6efc110e81ab6e0a70e2bf9a96a53268b6
16+
refs/heads/auto: a807aa1fca5f1dac03dd9440f735d0e223eef4af
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/libsyntax/ext/base.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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));

branches/auto/src/libsyntax/ext/quote.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
356366
pub fn expand_quote_stmt(cx: &mut ExtCtxt,
357367
sp: Span,
358368
tts: &[ast::TokenTree])

0 commit comments

Comments
 (0)