diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/ok/0062_macro_2.0.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/ok/0062_macro_2.0.txt | 176 |
1 files changed, 176 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/ok/0062_macro_2.0.txt b/crates/ra_syntax/test_data/parser/ok/0062_macro_2.0.txt new file mode 100644 index 000000000..2be523fc3 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/ok/0062_macro_2.0.txt | |||
@@ -0,0 +1,176 @@ | |||
1 | SOURCE_FILE@[0; 349) | ||
2 | MACRO_DEF@[0; 93) | ||
3 | MACRO_KW@[0; 5) "macro" | ||
4 | WHITESPACE@[5; 6) " " | ||
5 | NAME@[6; 21) | ||
6 | IDENT@[6; 21) "parse_use_trees" | ||
7 | TOKEN_TREE@[21; 93) | ||
8 | TOKEN_TREE@[21; 41) | ||
9 | L_PAREN@[21; 22) "(" | ||
10 | DOLLAR@[22; 23) "$" | ||
11 | TOKEN_TREE@[23; 32) | ||
12 | L_PAREN@[23; 24) "(" | ||
13 | DOLLAR@[24; 25) "$" | ||
14 | IDENT@[25; 26) "s" | ||
15 | COLON@[26; 27) ":" | ||
16 | IDENT@[27; 31) "expr" | ||
17 | R_PAREN@[31; 32) ")" | ||
18 | COMMA@[32; 33) "," | ||
19 | STAR@[33; 34) "*" | ||
20 | WHITESPACE@[34; 35) " " | ||
21 | DOLLAR@[35; 36) "$" | ||
22 | TOKEN_TREE@[36; 39) | ||
23 | L_PAREN@[36; 37) "(" | ||
24 | COMMA@[37; 38) "," | ||
25 | R_PAREN@[38; 39) ")" | ||
26 | STAR@[39; 40) "*" | ||
27 | R_PAREN@[40; 41) ")" | ||
28 | WHITESPACE@[41; 42) " " | ||
29 | TOKEN_TREE@[42; 93) | ||
30 | L_CURLY@[42; 43) "{" | ||
31 | WHITESPACE@[43; 48) "\n " | ||
32 | IDENT@[48; 51) "vec" | ||
33 | EXCL@[51; 52) "!" | ||
34 | TOKEN_TREE@[52; 91) | ||
35 | L_BRACK@[52; 53) "[" | ||
36 | WHITESPACE@[53; 62) "\n " | ||
37 | DOLLAR@[62; 63) "$" | ||
38 | TOKEN_TREE@[63; 84) | ||
39 | L_PAREN@[63; 64) "(" | ||
40 | IDENT@[64; 78) "parse_use_tree" | ||
41 | TOKEN_TREE@[78; 82) | ||
42 | L_PAREN@[78; 79) "(" | ||
43 | DOLLAR@[79; 80) "$" | ||
44 | IDENT@[80; 81) "s" | ||
45 | R_PAREN@[81; 82) ")" | ||
46 | COMMA@[82; 83) "," | ||
47 | R_PAREN@[83; 84) ")" | ||
48 | STAR@[84; 85) "*" | ||
49 | WHITESPACE@[85; 90) "\n " | ||
50 | R_BRACK@[90; 91) "]" | ||
51 | WHITESPACE@[91; 92) "\n" | ||
52 | R_CURLY@[92; 93) "}" | ||
53 | WHITESPACE@[93; 95) "\n\n" | ||
54 | FN_DEF@[95; 348) | ||
55 | ATTR@[95; 102) | ||
56 | POUND@[95; 96) "#" | ||
57 | L_BRACK@[96; 97) "[" | ||
58 | PATH@[97; 101) | ||
59 | PATH_SEGMENT@[97; 101) | ||
60 | NAME_REF@[97; 101) | ||
61 | IDENT@[97; 101) "test" | ||
62 | R_BRACK@[101; 102) "]" | ||
63 | WHITESPACE@[102; 103) "\n" | ||
64 | FN_KW@[103; 105) "fn" | ||
65 | WHITESPACE@[105; 106) " " | ||
66 | NAME@[106; 125) | ||
67 | IDENT@[106; 125) "test_use_tree_merge" | ||
68 | PARAM_LIST@[125; 127) | ||
69 | L_PAREN@[125; 126) "(" | ||
70 | R_PAREN@[126; 127) ")" | ||
71 | WHITESPACE@[127; 128) " " | ||
72 | BLOCK_EXPR@[128; 348) | ||
73 | BLOCK@[128; 348) | ||
74 | L_CURLY@[128; 129) "{" | ||
75 | WHITESPACE@[129; 134) "\n " | ||
76 | MACRO_DEF@[134; 346) | ||
77 | MACRO_KW@[134; 139) "macro" | ||
78 | WHITESPACE@[139; 140) " " | ||
79 | NAME@[140; 150) | ||
80 | IDENT@[140; 150) "test_merge" | ||
81 | TOKEN_TREE@[150; 346) | ||
82 | TOKEN_TREE@[150; 203) | ||
83 | L_PAREN@[150; 151) "(" | ||
84 | TOKEN_TREE@[151; 175) | ||
85 | L_BRACK@[151; 152) "[" | ||
86 | DOLLAR@[152; 153) "$" | ||
87 | TOKEN_TREE@[153; 166) | ||
88 | L_PAREN@[153; 154) "(" | ||
89 | DOLLAR@[154; 155) "$" | ||
90 | IDENT@[155; 160) "input" | ||
91 | COLON@[160; 161) ":" | ||
92 | IDENT@[161; 165) "expr" | ||
93 | R_PAREN@[165; 166) ")" | ||
94 | COMMA@[166; 167) "," | ||
95 | STAR@[167; 168) "*" | ||
96 | WHITESPACE@[168; 169) " " | ||
97 | DOLLAR@[169; 170) "$" | ||
98 | TOKEN_TREE@[170; 173) | ||
99 | L_PAREN@[170; 171) "(" | ||
100 | COMMA@[171; 172) "," | ||
101 | R_PAREN@[172; 173) ")" | ||
102 | STAR@[173; 174) "*" | ||
103 | R_BRACK@[174; 175) "]" | ||
104 | COMMA@[175; 176) "," | ||
105 | WHITESPACE@[176; 177) " " | ||
106 | TOKEN_TREE@[177; 202) | ||
107 | L_BRACK@[177; 178) "[" | ||
108 | DOLLAR@[178; 179) "$" | ||
109 | TOKEN_TREE@[179; 193) | ||
110 | L_PAREN@[179; 180) "(" | ||
111 | DOLLAR@[180; 181) "$" | ||
112 | IDENT@[181; 187) "output" | ||
113 | COLON@[187; 188) ":" | ||
114 | IDENT@[188; 192) "expr" | ||
115 | R_PAREN@[192; 193) ")" | ||
116 | COMMA@[193; 194) "," | ||
117 | STAR@[194; 195) "*" | ||
118 | WHITESPACE@[195; 196) " " | ||
119 | DOLLAR@[196; 197) "$" | ||
120 | TOKEN_TREE@[197; 200) | ||
121 | L_PAREN@[197; 198) "(" | ||
122 | COMMA@[198; 199) "," | ||
123 | R_PAREN@[199; 200) ")" | ||
124 | STAR@[200; 201) "*" | ||
125 | R_BRACK@[201; 202) "]" | ||
126 | R_PAREN@[202; 203) ")" | ||
127 | WHITESPACE@[203; 204) " " | ||
128 | TOKEN_TREE@[204; 346) | ||
129 | L_CURLY@[204; 205) "{" | ||
130 | WHITESPACE@[205; 214) "\n " | ||
131 | IDENT@[214; 223) "assert_eq" | ||
132 | EXCL@[223; 224) "!" | ||
133 | TOKEN_TREE@[224; 339) | ||
134 | L_PAREN@[224; 225) "(" | ||
135 | WHITESPACE@[225; 238) "\n " | ||
136 | IDENT@[238; 253) "merge_use_trees" | ||
137 | TOKEN_TREE@[253; 284) | ||
138 | L_PAREN@[253; 254) "(" | ||
139 | IDENT@[254; 269) "parse_use_trees" | ||
140 | EXCL@[269; 270) "!" | ||
141 | TOKEN_TREE@[270; 283) | ||
142 | L_PAREN@[270; 271) "(" | ||
143 | DOLLAR@[271; 272) "$" | ||
144 | TOKEN_TREE@[272; 281) | ||
145 | L_PAREN@[272; 273) "(" | ||
146 | DOLLAR@[273; 274) "$" | ||
147 | IDENT@[274; 279) "input" | ||
148 | COMMA@[279; 280) "," | ||
149 | R_PAREN@[280; 281) ")" | ||
150 | STAR@[281; 282) "*" | ||
151 | R_PAREN@[282; 283) ")" | ||
152 | R_PAREN@[283; 284) ")" | ||
153 | COMMA@[284; 285) "," | ||
154 | WHITESPACE@[285; 298) "\n " | ||
155 | IDENT@[298; 313) "parse_use_trees" | ||
156 | EXCL@[313; 314) "!" | ||
157 | TOKEN_TREE@[314; 328) | ||
158 | L_PAREN@[314; 315) "(" | ||
159 | DOLLAR@[315; 316) "$" | ||
160 | TOKEN_TREE@[316; 326) | ||
161 | L_PAREN@[316; 317) "(" | ||
162 | DOLLAR@[317; 318) "$" | ||
163 | IDENT@[318; 324) "output" | ||
164 | COMMA@[324; 325) "," | ||
165 | R_PAREN@[325; 326) ")" | ||
166 | STAR@[326; 327) "*" | ||
167 | R_PAREN@[327; 328) ")" | ||
168 | COMMA@[328; 329) "," | ||
169 | WHITESPACE@[329; 338) "\n " | ||
170 | R_PAREN@[338; 339) ")" | ||
171 | SEMI@[339; 340) ";" | ||
172 | WHITESPACE@[340; 345) "\n " | ||
173 | R_CURLY@[345; 346) "}" | ||
174 | WHITESPACE@[346; 347) "\n" | ||
175 | R_CURLY@[347; 348) "}" | ||
176 | WHITESPACE@[348; 349) "\n" | ||