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/tests/data/parser/err/0031_block_inner_attrs.txt | |
parent | 4d544fbf9b664b6a29d358d3cb41cdd7cd15e4d6 (diff) |
move syntax tests to unit tests
Diffstat (limited to 'crates/ra_syntax/tests/data/parser/err/0031_block_inner_attrs.txt')
-rw-r--r-- | crates/ra_syntax/tests/data/parser/err/0031_block_inner_attrs.txt | 114 |
1 files changed, 0 insertions, 114 deletions
diff --git a/crates/ra_syntax/tests/data/parser/err/0031_block_inner_attrs.txt b/crates/ra_syntax/tests/data/parser/err/0031_block_inner_attrs.txt deleted file mode 100644 index c205cf147..000000000 --- a/crates/ra_syntax/tests/data/parser/err/0031_block_inner_attrs.txt +++ /dev/null | |||
@@ -1,114 +0,0 @@ | |||
1 | SOURCE_FILE@[0; 350) | ||
2 | FN_DEF@[0; 349) | ||
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; 349) | ||
12 | L_CURLY@[11; 12) "{" | ||
13 | WHITESPACE@[12; 17) "\n " | ||
14 | LET_STMT@[17; 129) | ||
15 | LET_KW@[17; 20) "let" | ||
16 | WHITESPACE@[20; 21) " " | ||
17 | BIND_PAT@[21; 26) | ||
18 | NAME@[21; 26) | ||
19 | IDENT@[21; 26) "inner" | ||
20 | WHITESPACE@[26; 27) " " | ||
21 | EQ@[27; 28) "=" | ||
22 | WHITESPACE@[28; 29) " " | ||
23 | BLOCK_EXPR@[29; 128) | ||
24 | BLOCK@[29; 128) | ||
25 | L_CURLY@[29; 30) "{" | ||
26 | WHITESPACE@[30; 39) "\n " | ||
27 | ATTR@[39; 83) | ||
28 | POUND@[39; 40) "#" | ||
29 | EXCL@[40; 41) "!" | ||
30 | TOKEN_TREE@[41; 83) | ||
31 | L_BRACK@[41; 42) "[" | ||
32 | IDENT@[42; 45) "doc" | ||
33 | TOKEN_TREE@[45; 82) | ||
34 | L_PAREN@[45; 46) "(" | ||
35 | STRING@[46; 81) "\"Inner attributes not ..." | ||
36 | R_PAREN@[81; 82) ")" | ||
37 | R_BRACK@[82; 83) "]" | ||
38 | WHITESPACE@[83; 92) "\n " | ||
39 | COMMENT@[92; 122) "//! Nor are ModuleDoc ..." | ||
40 | WHITESPACE@[122; 127) "\n " | ||
41 | R_CURLY@[127; 128) "}" | ||
42 | SEMI@[128; 129) ";" | ||
43 | WHITESPACE@[129; 134) "\n " | ||
44 | EXPR_STMT@[134; 257) | ||
45 | IF_EXPR@[134; 257) | ||
46 | IF_KW@[134; 136) "if" | ||
47 | WHITESPACE@[136; 137) " " | ||
48 | CONDITION@[137; 141) | ||
49 | LITERAL@[137; 141) | ||
50 | TRUE_KW@[137; 141) "true" | ||
51 | WHITESPACE@[141; 142) " " | ||
52 | BLOCK@[142; 257) | ||
53 | L_CURLY@[142; 143) "{" | ||
54 | WHITESPACE@[143; 152) "\n " | ||
55 | ATTR@[152; 171) | ||
56 | POUND@[152; 153) "#" | ||
57 | EXCL@[153; 154) "!" | ||
58 | TOKEN_TREE@[154; 171) | ||
59 | L_BRACK@[154; 155) "[" | ||
60 | IDENT@[155; 158) "doc" | ||
61 | TOKEN_TREE@[158; 170) | ||
62 | L_PAREN@[158; 159) "(" | ||
63 | STRING@[159; 169) "\"Nor here\"" | ||
64 | R_PAREN@[169; 170) ")" | ||
65 | R_BRACK@[170; 171) "]" | ||
66 | WHITESPACE@[171; 180) "\n " | ||
67 | ATTR@[180; 212) | ||
68 | POUND@[180; 181) "#" | ||
69 | EXCL@[181; 182) "!" | ||
70 | TOKEN_TREE@[182; 212) | ||
71 | L_BRACK@[182; 183) "[" | ||
72 | IDENT@[183; 186) "doc" | ||
73 | TOKEN_TREE@[186; 211) | ||
74 | L_PAREN@[186; 187) "(" | ||
75 | STRING@[187; 210) "\"We error on each attr\"" | ||
76 | R_PAREN@[210; 211) ")" | ||
77 | R_BRACK@[211; 212) "]" | ||
78 | WHITESPACE@[212; 221) "\n " | ||
79 | COMMENT@[221; 251) "//! Nor are ModuleDoc ..." | ||
80 | WHITESPACE@[251; 256) "\n " | ||
81 | R_CURLY@[256; 257) "}" | ||
82 | WHITESPACE@[257; 262) "\n " | ||
83 | WHILE_EXPR@[262; 347) | ||
84 | WHILE_KW@[262; 267) "while" | ||
85 | WHITESPACE@[267; 268) " " | ||
86 | CONDITION@[268; 272) | ||
87 | LITERAL@[268; 272) | ||
88 | TRUE_KW@[268; 272) "true" | ||
89 | WHITESPACE@[272; 273) " " | ||
90 | BLOCK@[273; 347) | ||
91 | L_CURLY@[273; 274) "{" | ||
92 | WHITESPACE@[274; 283) "\n " | ||
93 | ATTR@[283; 302) | ||
94 | POUND@[283; 284) "#" | ||
95 | EXCL@[284; 285) "!" | ||
96 | TOKEN_TREE@[285; 302) | ||
97 | L_BRACK@[285; 286) "[" | ||
98 | IDENT@[286; 289) "doc" | ||
99 | TOKEN_TREE@[289; 301) | ||
100 | L_PAREN@[289; 290) "(" | ||
101 | STRING@[290; 300) "\"Nor here\"" | ||
102 | R_PAREN@[300; 301) ")" | ||
103 | R_BRACK@[301; 302) "]" | ||
104 | WHITESPACE@[302; 311) "\n " | ||
105 | COMMENT@[311; 341) "//! Nor are ModuleDoc ..." | ||
106 | WHITESPACE@[341; 346) "\n " | ||
107 | R_CURLY@[346; 347) "}" | ||
108 | WHITESPACE@[347; 348) "\n" | ||
109 | R_CURLY@[348; 349) "}" | ||
110 | WHITESPACE@[349; 350) "\n" | ||
111 | error [39; 83): A block in this position cannot accept inner attributes | ||
112 | error [152; 171): A block in this position cannot accept inner attributes | ||
113 | error [180; 212): A block in this position cannot accept inner attributes | ||
114 | error [283; 302): A block in this position cannot accept inner attributes | ||