1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
b0VIM 7.4 �CU^)��V erickt Erick-Tryzelaar-MBP.local ~erickt/projects/rust/rust-quasi/quasi_macros/src/lib.rs utf-8
3210 #"! U tp h j i q � Z D c � _ = ` ad � h � � ] Z � � R . - �
�
�
�
�
�
�
�
c
L
/
� � � � g $ � � � � � r V 6 �
�
�
�
o
N
� � | z y E � � ^ ; 9 8
� � ~ 5 � � � U � � � p n m ? � � r q 5 � � � � h c � � � � � h - � � � } base::MacEager::expr(expanded) let expanded = expand_parse_call(cx, sp, "parse_pat", vec!(), tts); -> Box<base::MacResult+'cx> { tts: &[ast::TokenTree]) sp: Span, pub fn expand_quote_pat<'cx>(cx: &'cx mut ExtCtxt, } base::MacEager::expr(expanded) let expanded = expand_wrapper(sp, cx_expr, block, &[&["quasi"]]); .expr().id("tt"); .with_stmts(vector) let block = builder.expr().block() vector.extend(statements_mk_tts(&tts[..], true).into_iter()); let mut vector = mk_stmts_let(&builder); let (cx_expr, tts) = parse_arguments_to_quote(cx, tts); let builder = aster::AstBuilder::new().span(sp); -> Box<base::MacResult+'static> { tts: &[ast::TokenTree]) sp: Span, pub fn expand_quote_matcher(cx: &mut ExtCtxt, } base::MacEager::expr(expanded) vec![builder.expr().bool(true)], tts); let expanded = expand_parse_call(cx, sp, "parse_attribute", let builder = aster::AstBuilder::new().span(sp); -> Box<base::MacResult+'static> { tts: &[ast::TokenTree]) sp: Span, pub fn expand_quote_attr(cx: &mut ExtCtxt, } base::MacEager::expr(expanded) let expanded = expand_parse_call(cx, sp, "parse_stmt", vec!(), tts); -> Box<base::MacResult+'static> { tts: &[ast::TokenTree]) sp: Span, pub fn expand_quote_stmt(cx: &mut ExtCtxt, } base::MacEager::expr(expanded) let expanded = expand_parse_call(cx, sp, "parse_expr", Vec::new(), tts); -> Box<base::MacResult+'cx> { tts: &[ast::TokenTree]) sp: Span, pub fn expand_quote_expr<'cx>(cx: &'cx mut ExtCtxt, } base::MacEager::expr(expanded) let expanded = expand_parse_call(cx, sp, "parse_ty", vec!(), tts); -> Box<base::MacResult+'static> { tts: &[ast::TokenTree]) sp: Span, pub fn expand_quote_ty(cx: &mut ExtCtxt, } base::MacEager::expr(expanded) let expanded = expand_wrapper(sp, cx_expr, expr, &[&["quasi"]]); let (cx_expr, expr) = expand_tts(cx, sp, tts); ) -> Box<base::MacResult+'cx> { tts: &[ast::TokenTree], sp: Span, cx: &'cx mut ExtCtxt, pub fn expand_quote_tokens<'cx>( /// as antiquotes (splices). /// construction of the same token tree, with token::SubstNt interpreted /// that lifts its argument token-tree to an AST representing the /// This is registered as a set of expression syntax extension called quote! ///