diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/ok/0045_block_inner_attrs.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/ok/0045_block_inner_attrs.rast | 181 |
1 files changed, 181 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/ok/0045_block_inner_attrs.rast b/crates/ra_syntax/test_data/parser/ok/0045_block_inner_attrs.rast new file mode 100644 index 000000000..e15447ca7 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/ok/0045_block_inner_attrs.rast | |||
@@ -0,0 +1,181 @@ | |||
1 | SOURCE_FILE@[0; 686) | ||
2 | FN_DEF@[0; 461) | ||
3 | FN_KW@[0; 2) "fn" | ||
4 | WHITESPACE@[2; 3) " " | ||
5 | NAME@[3; 8) | ||
6 | IDENT@[3; 8) "block" | ||
7 | PARAM_LIST@[8; 10) | ||
8 | L_PAREN@[8; 9) "(" | ||
9 | R_PAREN@[9; 10) ")" | ||
10 | WHITESPACE@[10; 11) " " | ||
11 | BLOCK_EXPR@[11; 461) | ||
12 | BLOCK@[11; 461) | ||
13 | L_CURLY@[11; 12) "{" | ||
14 | WHITESPACE@[12; 17) "\n " | ||
15 | ATTR@[17; 57) | ||
16 | POUND@[17; 18) "#" | ||
17 | EXCL@[18; 19) "!" | ||
18 | L_BRACK@[19; 20) "[" | ||
19 | PATH@[20; 23) | ||
20 | PATH_SEGMENT@[20; 23) | ||
21 | NAME_REF@[20; 23) | ||
22 | IDENT@[20; 23) "doc" | ||
23 | TOKEN_TREE@[23; 56) | ||
24 | L_PAREN@[23; 24) "(" | ||
25 | STRING@[24; 55) "\"Inner attributes all ..." | ||
26 | R_PAREN@[55; 56) ")" | ||
27 | R_BRACK@[56; 57) "]" | ||
28 | WHITESPACE@[57; 62) "\n " | ||
29 | COMMENT@[62; 97) "//! As are ModuleDoc ..." | ||
30 | WHITESPACE@[97; 102) "\n " | ||
31 | EXPR_STMT@[102; 295) | ||
32 | BLOCK_EXPR@[102; 294) | ||
33 | BLOCK@[102; 294) | ||
34 | L_CURLY@[102; 103) "{" | ||
35 | WHITESPACE@[103; 112) "\n " | ||
36 | ATTR@[112; 180) | ||
37 | POUND@[112; 113) "#" | ||
38 | EXCL@[113; 114) "!" | ||
39 | L_BRACK@[114; 115) "[" | ||
40 | PATH@[115; 118) | ||
41 | PATH_SEGMENT@[115; 118) | ||
42 | NAME_REF@[115; 118) | ||
43 | IDENT@[115; 118) "doc" | ||
44 | TOKEN_TREE@[118; 179) | ||
45 | L_PAREN@[118; 119) "(" | ||
46 | STRING@[119; 178) "\"Inner attributes are ..." | ||
47 | R_PAREN@[178; 179) ")" | ||
48 | R_BRACK@[179; 180) "]" | ||
49 | WHITESPACE@[180; 189) "\n " | ||
50 | ATTR@[189; 244) | ||
51 | POUND@[189; 190) "#" | ||
52 | EXCL@[190; 191) "!" | ||
53 | L_BRACK@[191; 192) "[" | ||
54 | PATH@[192; 195) | ||
55 | PATH_SEGMENT@[192; 195) | ||
56 | NAME_REF@[192; 195) | ||
57 | IDENT@[192; 195) "doc" | ||
58 | TOKEN_TREE@[195; 243) | ||
59 | L_PAREN@[195; 196) "(" | ||
60 | STRING@[196; 242) "\"Being validated is n ..." | ||
61 | R_PAREN@[242; 243) ")" | ||
62 | R_BRACK@[243; 244) "]" | ||
63 | WHITESPACE@[244; 253) "\n " | ||
64 | COMMENT@[253; 288) "//! As are ModuleDoc ..." | ||
65 | WHITESPACE@[288; 293) "\n " | ||
66 | R_CURLY@[293; 294) "}" | ||
67 | SEMI@[294; 295) ";" | ||
68 | WHITESPACE@[295; 300) "\n " | ||
69 | BLOCK_EXPR@[300; 459) | ||
70 | BLOCK@[300; 459) | ||
71 | L_CURLY@[300; 301) "{" | ||
72 | WHITESPACE@[301; 310) "\n " | ||
73 | ATTR@[310; 409) | ||
74 | POUND@[310; 311) "#" | ||
75 | EXCL@[311; 312) "!" | ||
76 | L_BRACK@[312; 313) "[" | ||
77 | PATH@[313; 316) | ||
78 | PATH_SEGMENT@[313; 316) | ||
79 | NAME_REF@[313; 316) | ||
80 | IDENT@[313; 316) "doc" | ||
81 | TOKEN_TREE@[316; 408) | ||
82 | L_PAREN@[316; 317) "(" | ||
83 | STRING@[317; 407) "\"Inner attributes are ..." | ||
84 | R_PAREN@[407; 408) ")" | ||
85 | R_BRACK@[408; 409) "]" | ||
86 | WHITESPACE@[409; 418) "\n " | ||
87 | COMMENT@[418; 453) "//! As are ModuleDoc ..." | ||
88 | WHITESPACE@[453; 458) "\n " | ||
89 | R_CURLY@[458; 459) "}" | ||
90 | WHITESPACE@[459; 460) "\n" | ||
91 | R_CURLY@[460; 461) "}" | ||
92 | WHITESPACE@[461; 463) "\n\n" | ||
93 | COMMENT@[463; 523) "// https://github.com ..." | ||
94 | WHITESPACE@[523; 524) "\n" | ||
95 | IMPL_DEF@[524; 685) | ||
96 | IMPL_KW@[524; 528) "impl" | ||
97 | WHITESPACE@[528; 529) " " | ||
98 | PATH_TYPE@[529; 537) | ||
99 | PATH@[529; 537) | ||
100 | PATH_SEGMENT@[529; 537) | ||
101 | NAME_REF@[529; 537) | ||
102 | IDENT@[529; 537) "Whatever" | ||
103 | WHITESPACE@[537; 538) " " | ||
104 | ITEM_LIST@[538; 685) | ||
105 | L_CURLY@[538; 539) "{" | ||
106 | WHITESPACE@[539; 544) "\n " | ||
107 | FN_DEF@[544; 683) | ||
108 | FN_KW@[544; 546) "fn" | ||
109 | WHITESPACE@[546; 547) " " | ||
110 | NAME@[547; 558) | ||
111 | IDENT@[547; 558) "salsa_event" | ||
112 | PARAM_LIST@[558; 601) | ||
113 | L_PAREN@[558; 559) "(" | ||
114 | SELF_PARAM@[559; 564) | ||
115 | AMP@[559; 560) "&" | ||
116 | SELF_KW@[560; 564) "self" | ||
117 | COMMA@[564; 565) "," | ||
118 | WHITESPACE@[565; 566) " " | ||
119 | PARAM@[566; 600) | ||
120 | BIND_PAT@[566; 574) | ||
121 | NAME@[566; 574) | ||
122 | IDENT@[566; 574) "event_fn" | ||
123 | COLON@[574; 575) ":" | ||
124 | WHITESPACE@[575; 576) " " | ||
125 | IMPL_TRAIT_TYPE@[576; 600) | ||
126 | IMPL_KW@[576; 580) "impl" | ||
127 | WHITESPACE@[580; 581) " " | ||
128 | TYPE_BOUND_LIST@[581; 600) | ||
129 | TYPE_BOUND@[581; 600) | ||
130 | PATH_TYPE@[581; 600) | ||
131 | PATH@[581; 600) | ||
132 | PATH_SEGMENT@[581; 600) | ||
133 | NAME_REF@[581; 583) | ||
134 | IDENT@[581; 583) "Fn" | ||
135 | PARAM_LIST@[583; 585) | ||
136 | L_PAREN@[583; 584) "(" | ||
137 | R_PAREN@[584; 585) ")" | ||
138 | WHITESPACE@[585; 586) " " | ||
139 | RET_TYPE@[586; 600) | ||
140 | THIN_ARROW@[586; 588) "->" | ||
141 | WHITESPACE@[588; 589) " " | ||
142 | PATH_TYPE@[589; 600) | ||
143 | PATH@[589; 600) | ||
144 | PATH_SEGMENT@[589; 600) | ||
145 | NAME_REF@[589; 594) | ||
146 | IDENT@[589; 594) "Event" | ||
147 | TYPE_ARG_LIST@[594; 600) | ||
148 | L_ANGLE@[594; 595) "<" | ||
149 | TYPE_ARG@[595; 599) | ||
150 | PATH_TYPE@[595; 599) | ||
151 | PATH@[595; 599) | ||
152 | PATH_SEGMENT@[595; 599) | ||
153 | NAME_REF@[595; 599) | ||
154 | IDENT@[595; 599) "Self" | ||
155 | R_ANGLE@[599; 600) ">" | ||
156 | R_PAREN@[600; 601) ")" | ||
157 | WHITESPACE@[601; 602) " " | ||
158 | BLOCK_EXPR@[602; 683) | ||
159 | BLOCK@[602; 683) | ||
160 | L_CURLY@[602; 603) "{" | ||
161 | WHITESPACE@[603; 612) "\n " | ||
162 | ATTR@[612; 639) | ||
163 | POUND@[612; 613) "#" | ||
164 | EXCL@[613; 614) "!" | ||
165 | L_BRACK@[614; 615) "[" | ||
166 | PATH@[615; 620) | ||
167 | PATH_SEGMENT@[615; 620) | ||
168 | NAME_REF@[615; 620) | ||
169 | IDENT@[615; 620) "allow" | ||
170 | TOKEN_TREE@[620; 638) | ||
171 | L_PAREN@[620; 621) "(" | ||
172 | IDENT@[621; 637) "unused_variables" | ||
173 | R_PAREN@[637; 638) ")" | ||
174 | R_BRACK@[638; 639) "]" | ||
175 | WHITESPACE@[639; 640) " " | ||
176 | COMMENT@[640; 677) "// this is `inner_at ..." | ||
177 | WHITESPACE@[677; 682) "\n " | ||
178 | R_CURLY@[682; 683) "}" | ||
179 | WHITESPACE@[683; 684) "\n" | ||
180 | R_CURLY@[684; 685) "}" | ||
181 | WHITESPACE@[685; 686) "\n" | ||