summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/capture-macro-rules-invoke.stdout
blob: b88fbd3e89776a169017725e842e610218350678 (plain)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
PRINT-BANG INPUT (DISPLAY): self
PRINT-BANG INPUT (DEBUG): TokenStream [
    Group {
        delimiter: None,
        stream: TokenStream [
            Ident {
                ident: "self",
                span: $DIR/capture-macro-rules-invoke.rs:36:24: 36:28 (#0),
            },
        ],
        span: $DIR/capture-macro-rules-invoke.rs:21:21: 21:26 (#4),
    },
]
PRINT-BANG INPUT (DISPLAY): 1 + 1, { "a" }, let a = 1;, String, my_name, 'a, my_val = 30,
std::option::Option, pub(in some::path) , [a b c], -30
PRINT-BANG RE-COLLECTED (DISPLAY): 1 + 1, { "a" }, let a = 1, String, my_name, 'a, my_val = 30,
std :: option :: Option, pub(in some :: path), [a b c], - 30
PRINT-BANG INPUT (DEBUG): TokenStream [
    Group {
        delimiter: None,
        stream: TokenStream [
            Literal {
                kind: Integer,
                symbol: "1",
                suffix: None,
                span: $DIR/capture-macro-rules-invoke.rs:38:13: 38:14 (#0),
            },
            Punct {
                ch: '+',
                spacing: Alone,
                span: $DIR/capture-macro-rules-invoke.rs:38:15: 38:16 (#0),
            },
            Literal {
                kind: Integer,
                symbol: "1",
                suffix: None,
                span: $DIR/capture-macro-rules-invoke.rs:38:17: 38:18 (#0),
            },
        ],
        span: $DIR/capture-macro-rules-invoke.rs:14:29: 14:34 (#8),
    },
    Punct {
        ch: ',',
        spacing: Alone,
        span: $DIR/capture-macro-rules-invoke.rs:14:34: 14:35 (#8),
    },
    Group {
        delimiter: None,
        stream: TokenStream [
            Group {
                delimiter: Brace,
                stream: TokenStream [
                    Literal {
                        kind: Str,
                        symbol: "a",
                        suffix: None,
                        span: $DIR/capture-macro-rules-invoke.rs:39:15: 39:18 (#0),
                    },
                ],
                span: $DIR/capture-macro-rules-invoke.rs:39:13: 39:20 (#0),
            },
        ],
        span: $DIR/capture-macro-rules-invoke.rs:14:36: 14:42 (#8),
    },
    Punct {
        ch: ',',
        spacing: Alone,
        span: $DIR/capture-macro-rules-invoke.rs:14:42: 14:43 (#8),
    },
    Group {
        delimiter: None,
        stream: TokenStream [
            Ident {
                ident: "let",
                span: $DIR/capture-macro-rules-invoke.rs:40:13: 40:16 (#0),
            },
            Ident {
                ident: "a",
                span: $DIR/capture-macro-rules-invoke.rs:40:17: 40:18 (#0),
            },
            Punct {
                ch: '=',
                spacing: Alone,
                span: $DIR/capture-macro-rules-invoke.rs:40:19: 40:20 (#0),
            },
            Literal {
                kind: Integer,
                symbol: "1",
                suffix: None,
                span: $DIR/capture-macro-rules-invoke.rs:40:21: 40:22 (#0),
            },
        ],
        span: $DIR/capture-macro-rules-invoke.rs:14:44: 14:49 (#8),
    },
    Punct {
        ch: ',',
        spacing: Alone,
        span: $DIR/capture-macro-rules-invoke.rs:14:49: 14:50 (#8),
    },
    Group {
        delimiter: None,
        stream: TokenStream [
            Ident {
                ident: "String",
                span: $DIR/capture-macro-rules-invoke.rs:41:13: 41:19 (#0),
            },
        ],
        span: $DIR/capture-macro-rules-invoke.rs:14:51: 14:54 (#8),
    },
    Punct {
        ch: ',',
        spacing: Alone,
        span: $DIR/capture-macro-rules-invoke.rs:14:54: 14:55 (#8),
    },
    Ident {
        ident: "my_name",
        span: $DIR/capture-macro-rules-invoke.rs:42:13: 42:20 (#0),
    },
    Punct {
        ch: ',',
        spacing: Alone,
        span: $DIR/capture-macro-rules-invoke.rs:14:62: 14:63 (#8),
    },
    Group {
        delimiter: None,
        stream: TokenStream [
            Punct {
                ch: '\'',
                spacing: Joint,
                span: $DIR/capture-macro-rules-invoke.rs:43:13: 43:15 (#0),
            },
            Ident {
                ident: "a",
                span: $DIR/capture-macro-rules-invoke.rs:43:13: 43:15 (#0),
            },
        ],
        span: $DIR/capture-macro-rules-invoke.rs:15:29: 15:38 (#8),
    },
    Punct {
        ch: ',',
        spacing: Alone,
        span: $DIR/capture-macro-rules-invoke.rs:15:38: 15:39 (#8),
    },
    Group {
        delimiter: None,
        stream: TokenStream [
            Ident {
                ident: "my_val",
                span: $DIR/capture-macro-rules-invoke.rs:44:13: 44:19 (#0),
            },
            Punct {
                ch: '=',
                spacing: Alone,
                span: $DIR/capture-macro-rules-invoke.rs:44:20: 44:21 (#0),
            },
            Literal {
                kind: Integer,
                symbol: "30",
                suffix: None,
                span: $DIR/capture-macro-rules-invoke.rs:44:22: 44:24 (#0),
            },
        ],
        span: $DIR/capture-macro-rules-invoke.rs:15:40: 15:45 (#8),
    },
    Punct {
        ch: ',',
        spacing: Alone,
        span: $DIR/capture-macro-rules-invoke.rs:15:45: 15:46 (#8),
    },
    Group {
        delimiter: None,
        stream: TokenStream [
            Ident {
                ident: "std",
                span: $DIR/capture-macro-rules-invoke.rs:45:13: 45:16 (#0),
            },
            Punct {
                ch: ':',
                spacing: Joint,
                span: $DIR/capture-macro-rules-invoke.rs:45:16: 45:17 (#0),
            },
            Punct {
                ch: ':',
                spacing: Alone,
                span: $DIR/capture-macro-rules-invoke.rs:45:17: 45:18 (#0),
            },
            Ident {
                ident: "option",
                span: $DIR/capture-macro-rules-invoke.rs:45:18: 45:24 (#0),
            },
            Punct {
                ch: ':',
                spacing: Joint,
                span: $DIR/capture-macro-rules-invoke.rs:45:24: 45:25 (#0),
            },
            Punct {
                ch: ':',
                spacing: Alone,
                span: $DIR/capture-macro-rules-invoke.rs:45:25: 45:26 (#0),
            },
            Ident {
                ident: "Option",
                span: $DIR/capture-macro-rules-invoke.rs:45:26: 45:32 (#0),
            },
        ],
        span: $DIR/capture-macro-rules-invoke.rs:15:47: 15:52 (#8),
    },
    Punct {
        ch: ',',
        spacing: Alone,
        span: $DIR/capture-macro-rules-invoke.rs:15:52: 15:53 (#8),
    },
    Group {
        delimiter: None,
        stream: TokenStream [
            Ident {
                ident: "pub",
                span: $DIR/capture-macro-rules-invoke.rs:46:13: 46:16 (#0),
            },
            Group {
                delimiter: Parenthesis,
                stream: TokenStream [
                    Ident {
                        ident: "in",
                        span: $DIR/capture-macro-rules-invoke.rs:46:17: 46:19 (#0),
                    },
                    Ident {
                        ident: "some",
                        span: $DIR/capture-macro-rules-invoke.rs:46:20: 46:24 (#0),
                    },
                    Punct {
                        ch: ':',
                        spacing: Joint,
                        span: $DIR/capture-macro-rules-invoke.rs:46:24: 46:25 (#0),
                    },
                    Punct {
                        ch: ':',
                        spacing: Alone,
                        span: $DIR/capture-macro-rules-invoke.rs:46:25: 46:26 (#0),
                    },
                    Ident {
                        ident: "path",
                        span: $DIR/capture-macro-rules-invoke.rs:46:26: 46:30 (#0),
                    },
                ],
                span: $DIR/capture-macro-rules-invoke.rs:46:16: 46:31 (#0),
            },
        ],
        span: $DIR/capture-macro-rules-invoke.rs:15:54: 15:58 (#8),
    },
    Punct {
        ch: ',',
        spacing: Alone,
        span: $DIR/capture-macro-rules-invoke.rs:15:58: 15:59 (#8),
    },
    Group {
        delimiter: Bracket,
        stream: TokenStream [
            Ident {
                ident: "a",
                span: $DIR/capture-macro-rules-invoke.rs:47:15: 47:16 (#0),
            },
            Ident {
                ident: "b",
                span: $DIR/capture-macro-rules-invoke.rs:47:17: 47:18 (#0),
            },
            Ident {
                ident: "c",
                span: $DIR/capture-macro-rules-invoke.rs:47:19: 47:20 (#0),
            },
        ],
        span: $DIR/capture-macro-rules-invoke.rs:47:13: 47:22 (#0),
    },
    Punct {
        ch: ',',
        spacing: Alone,
        span: $DIR/capture-macro-rules-invoke.rs:15:63: 15:64 (#8),
    },
    Group {
        delimiter: None,
        stream: TokenStream [
            Punct {
                ch: '-',
                spacing: Alone,
                span: $DIR/capture-macro-rules-invoke.rs:48:13: 48:14 (#0),
            },
            Literal {
                kind: Integer,
                symbol: "30",
                suffix: None,
                span: $DIR/capture-macro-rules-invoke.rs:48:14: 48:16 (#0),
            },
        ],
        span: $DIR/capture-macro-rules-invoke.rs:15:65: 15:69 (#8),
    },
]
PRINT-BANG INPUT (DISPLAY): (a, b)
PRINT-BANG INPUT (DEBUG): TokenStream [
    Group {
        delimiter: None,
        stream: TokenStream [
            Group {
                delimiter: Parenthesis,
                stream: TokenStream [
                    Ident {
                        ident: "a",
                        span: $DIR/capture-macro-rules-invoke.rs:52:27: 52:28 (#0),
                    },
                    Punct {
                        ch: ',',
                        spacing: Alone,
                        span: $DIR/capture-macro-rules-invoke.rs:52:28: 52:29 (#0),
                    },
                    Ident {
                        ident: "b",
                        span: $DIR/capture-macro-rules-invoke.rs:52:30: 52:31 (#0),
                    },
                ],
                span: $DIR/capture-macro-rules-invoke.rs:52:26: 52:32 (#0),
            },
        ],
        span: $DIR/capture-macro-rules-invoke.rs:27:21: 27:25 (#12),
    },
]