summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/nodelim-groups.stdout
blob: 6b410f0bfb7e3b856c06f1db4deb0e5248aac630 (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
PRINT-BANG INPUT (DISPLAY): "hi" 1 + (25) + 1 (1 + 1)
PRINT-BANG INPUT (DEBUG): TokenStream [
    Literal {
        kind: Str,
        symbol: "hi",
        suffix: None,
        span: $DIR/nodelim-groups.rs:16:42: 16:46 (#4),
    },
    Group {
        delimiter: None,
        stream: TokenStream [
            Literal {
                kind: Integer,
                symbol: "1",
                suffix: None,
                span: $DIR/nodelim-groups.rs:20:16: 20:17 (#0),
            },
            Punct {
                ch: '+',
                spacing: Alone,
                span: $DIR/nodelim-groups.rs:20:18: 20:19 (#0),
            },
            Group {
                delimiter: Parenthesis,
                stream: TokenStream [
                    Literal {
                        kind: Integer,
                        symbol: "25",
                        suffix: None,
                        span: $DIR/nodelim-groups.rs:20:21: 20:23 (#0),
                    },
                ],
                span: $DIR/nodelim-groups.rs:20:20: 20:24 (#0),
            },
            Punct {
                ch: '+',
                spacing: Alone,
                span: $DIR/nodelim-groups.rs:20:25: 20:26 (#0),
            },
            Literal {
                kind: Integer,
                symbol: "1",
                suffix: None,
                span: $DIR/nodelim-groups.rs:20:27: 20:28 (#0),
            },
        ],
        span: $DIR/nodelim-groups.rs:16:47: 16:51 (#4),
    },
    Group {
        delimiter: Parenthesis,
        stream: TokenStream [
            Literal {
                kind: Integer,
                symbol: "1",
                suffix: None,
                span: $DIR/nodelim-groups.rs:16:53: 16:54 (#4),
            },
            Punct {
                ch: '+',
                spacing: Alone,
                span: $DIR/nodelim-groups.rs:16:55: 16:56 (#4),
            },
            Literal {
                kind: Integer,
                symbol: "1",
                suffix: None,
                span: $DIR/nodelim-groups.rs:16:57: 16:58 (#4),
            },
        ],
        span: $DIR/nodelim-groups.rs:16:52: 16:59 (#4),
    },
]
PRINT-BANG INPUT (DISPLAY): "hi" "hello".len() + "world".len() (1 + 1)
PRINT-BANG INPUT (DEBUG): TokenStream [
    Literal {
        kind: Str,
        symbol: "hi",
        suffix: None,
        span: $DIR/nodelim-groups.rs:16:42: 16:46 (#9),
    },
    Group {
        delimiter: None,
        stream: TokenStream [
            Group {
                delimiter: None,
                stream: TokenStream [
                    Literal {
                        kind: Str,
                        symbol: "hello",
                        suffix: None,
                        span: $DIR/nodelim-groups.rs:21:17: 21:24 (#0),
                    },
                    Punct {
                        ch: '.',
                        spacing: Alone,
                        span: $DIR/nodelim-groups.rs:21:24: 21:25 (#0),
                    },
                    Ident {
                        ident: "len",
                        span: $DIR/nodelim-groups.rs:21:25: 21:28 (#0),
                    },
                    Group {
                        delimiter: Parenthesis,
                        stream: TokenStream [],
                        span: $DIR/nodelim-groups.rs:21:28: 21:30 (#0),
                    },
                ],
                span: $DIR/nodelim-groups.rs:15:49: 15:54 (#8),
            },
            Punct {
                ch: '+',
                spacing: Alone,
                span: $DIR/nodelim-groups.rs:15:55: 15:56 (#8),
            },
            Group {
                delimiter: None,
                stream: TokenStream [
                    Literal {
                        kind: Str,
                        symbol: "world",
                        suffix: None,
                        span: $DIR/nodelim-groups.rs:21:33: 21:40 (#0),
                    },
                    Punct {
                        ch: '.',
                        spacing: Alone,
                        span: $DIR/nodelim-groups.rs:21:40: 21:41 (#0),
                    },
                    Ident {
                        ident: "len",
                        span: $DIR/nodelim-groups.rs:21:41: 21:44 (#0),
                    },
                    Group {
                        delimiter: Parenthesis,
                        stream: TokenStream [],
                        span: $DIR/nodelim-groups.rs:21:44: 21:46 (#0),
                    },
                ],
                span: $DIR/nodelim-groups.rs:15:57: 15:62 (#8),
            },
        ],
        span: $DIR/nodelim-groups.rs:16:47: 16:51 (#9),
    },
    Group {
        delimiter: Parenthesis,
        stream: TokenStream [
            Literal {
                kind: Integer,
                symbol: "1",
                suffix: None,
                span: $DIR/nodelim-groups.rs:16:53: 16:54 (#9),
            },
            Punct {
                ch: '+',
                spacing: Alone,
                span: $DIR/nodelim-groups.rs:16:55: 16:56 (#9),
            },
            Literal {
                kind: Integer,
                symbol: "1",
                suffix: None,
                span: $DIR/nodelim-groups.rs:16:57: 16:58 (#9),
            },
        ],
        span: $DIR/nodelim-groups.rs:16:52: 16:59 (#9),
    },
]