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/inline/ok/0127_attr_on_last_expr_in_block.txt | |
parent | 4d544fbf9b664b6a29d358d3cb41cdd7cd15e4d6 (diff) |
move syntax tests to unit tests
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0127_attr_on_last_expr_in_block.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0127_attr_on_last_expr_in_block.txt | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0127_attr_on_last_expr_in_block.txt b/crates/ra_syntax/test_data/parser/inline/ok/0127_attr_on_last_expr_in_block.txt new file mode 100644 index 000000000..62a6a7bc0 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0127_attr_on_last_expr_in_block.txt | |||
@@ -0,0 +1,54 @@ | |||
1 | SOURCE_FILE@[0; 47) | ||
2 | FN_DEF@[0; 46) | ||
3 | FN_KW@[0; 2) "fn" | ||
4 | WHITESPACE@[2; 3) " " | ||
5 | NAME@[3; 6) | ||
6 | IDENT@[3; 6) "foo" | ||
7 | PARAM_LIST@[6; 8) | ||
8 | L_PAREN@[6; 7) "(" | ||
9 | R_PAREN@[7; 8) ")" | ||
10 | WHITESPACE@[8; 9) " " | ||
11 | BLOCK@[9; 46) | ||
12 | L_CURLY@[9; 10) "{" | ||
13 | WHITESPACE@[10; 15) "\n " | ||
14 | EXPR_STMT@[15; 31) | ||
15 | BLOCK_EXPR@[15; 31) | ||
16 | BLOCK@[15; 31) | ||
17 | L_CURLY@[15; 16) "{" | ||
18 | WHITESPACE@[16; 17) " " | ||
19 | TRY_EXPR@[17; 29) | ||
20 | ATTR@[17; 21) | ||
21 | POUND@[17; 18) "#" | ||
22 | TOKEN_TREE@[18; 21) | ||
23 | L_BRACK@[18; 19) "[" | ||
24 | IDENT@[19; 20) "A" | ||
25 | R_BRACK@[20; 21) "]" | ||
26 | WHITESPACE@[21; 22) " " | ||
27 | MACRO_CALL@[22; 28) | ||
28 | PATH@[22; 25) | ||
29 | PATH_SEGMENT@[22; 25) | ||
30 | NAME_REF@[22; 25) | ||
31 | IDENT@[22; 25) "bar" | ||
32 | EXCL@[25; 26) "!" | ||
33 | TOKEN_TREE@[26; 28) | ||
34 | L_PAREN@[26; 27) "(" | ||
35 | R_PAREN@[27; 28) ")" | ||
36 | QUESTION@[28; 29) "?" | ||
37 | WHITESPACE@[29; 30) " " | ||
38 | R_CURLY@[30; 31) "}" | ||
39 | WHITESPACE@[31; 36) "\n " | ||
40 | REF_EXPR@[36; 44) | ||
41 | ATTR@[36; 40) | ||
42 | POUND@[36; 37) "#" | ||
43 | TOKEN_TREE@[37; 40) | ||
44 | L_BRACK@[37; 38) "[" | ||
45 | IDENT@[38; 39) "B" | ||
46 | R_BRACK@[39; 40) "]" | ||
47 | WHITESPACE@[40; 41) " " | ||
48 | AMP@[41; 42) "&" | ||
49 | TUPLE_EXPR@[42; 44) | ||
50 | L_PAREN@[42; 43) "(" | ||
51 | R_PAREN@[43; 44) ")" | ||
52 | WHITESPACE@[44; 45) "\n" | ||
53 | R_CURLY@[45; 46) "}" | ||
54 | WHITESPACE@[46; 47) "\n" | ||