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