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/0126_attr_on_expr_stmt.txt | |
parent | 4d544fbf9b664b6a29d358d3cb41cdd7cd15e4d6 (diff) |
move syntax tests to unit tests
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0126_attr_on_expr_stmt.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0126_attr_on_expr_stmt.txt | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0126_attr_on_expr_stmt.txt b/crates/ra_syntax/test_data/parser/inline/ok/0126_attr_on_expr_stmt.txt new file mode 100644 index 000000000..c15c7573a --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0126_attr_on_expr_stmt.txt | |||
@@ -0,0 +1,88 @@ | |||
1 | SOURCE_FILE@[0; 82) | ||
2 | FN_DEF@[0; 81) | ||
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; 81) | ||
12 | L_CURLY@[9; 10) "{" | ||
13 | WHITESPACE@[10; 15) "\n " | ||
14 | EXPR_STMT@[15; 26) | ||
15 | ATTR@[15; 19) | ||
16 | POUND@[15; 16) "#" | ||
17 | TOKEN_TREE@[16; 19) | ||
18 | L_BRACK@[16; 17) "[" | ||
19 | IDENT@[17; 18) "A" | ||
20 | R_BRACK@[18; 19) "]" | ||
21 | WHITESPACE@[19; 20) " " | ||
22 | CALL_EXPR@[20; 25) | ||
23 | PATH_EXPR@[20; 23) | ||
24 | PATH@[20; 23) | ||
25 | PATH_SEGMENT@[20; 23) | ||
26 | NAME_REF@[20; 23) | ||
27 | IDENT@[20; 23) "foo" | ||
28 | ARG_LIST@[23; 25) | ||
29 | L_PAREN@[23; 24) "(" | ||
30 | R_PAREN@[24; 25) ")" | ||
31 | SEMI@[25; 26) ";" | ||
32 | WHITESPACE@[26; 31) "\n " | ||
33 | EXPR_STMT@[31; 42) | ||
34 | ATTR@[31; 35) | ||
35 | POUND@[31; 32) "#" | ||
36 | TOKEN_TREE@[32; 35) | ||
37 | L_BRACK@[32; 33) "[" | ||
38 | IDENT@[33; 34) "B" | ||
39 | R_BRACK@[34; 35) "]" | ||
40 | WHITESPACE@[35; 36) " " | ||
41 | MACRO_CALL@[36; 42) | ||
42 | PATH@[36; 39) | ||
43 | PATH_SEGMENT@[36; 39) | ||
44 | NAME_REF@[36; 39) | ||
45 | IDENT@[36; 39) "bar" | ||
46 | EXCL@[39; 40) "!" | ||
47 | TOKEN_TREE@[40; 42) | ||
48 | L_CURLY@[40; 41) "{" | ||
49 | R_CURLY@[41; 42) "}" | ||
50 | WHITESPACE@[42; 47) "\n " | ||
51 | EXPR_STMT@[47; 59) | ||
52 | ATTR@[47; 51) | ||
53 | POUND@[47; 48) "#" | ||
54 | TOKEN_TREE@[48; 51) | ||
55 | L_BRACK@[48; 49) "[" | ||
56 | IDENT@[49; 50) "C" | ||
57 | R_BRACK@[50; 51) "]" | ||
58 | WHITESPACE@[51; 52) " " | ||
59 | ATTR@[52; 56) | ||
60 | POUND@[52; 53) "#" | ||
61 | TOKEN_TREE@[53; 56) | ||
62 | L_BRACK@[53; 54) "[" | ||
63 | IDENT@[54; 55) "D" | ||
64 | R_BRACK@[55; 56) "]" | ||
65 | WHITESPACE@[56; 57) " " | ||
66 | BLOCK_EXPR@[57; 59) | ||
67 | BLOCK@[57; 59) | ||
68 | L_CURLY@[57; 58) "{" | ||
69 | R_CURLY@[58; 59) "}" | ||
70 | WHITESPACE@[59; 64) "\n " | ||
71 | EXPR_STMT@[64; 79) | ||
72 | ATTR@[64; 68) | ||
73 | POUND@[64; 65) "#" | ||
74 | TOKEN_TREE@[65; 68) | ||
75 | L_BRACK@[65; 66) "[" | ||
76 | IDENT@[66; 67) "D" | ||
77 | R_BRACK@[67; 68) "]" | ||
78 | WHITESPACE@[68; 69) " " | ||
79 | RETURN_EXPR@[69; 78) | ||
80 | RETURN_KW@[69; 75) "return" | ||
81 | WHITESPACE@[75; 76) " " | ||
82 | TUPLE_EXPR@[76; 78) | ||
83 | L_PAREN@[76; 77) "(" | ||
84 | R_PAREN@[77; 78) ")" | ||
85 | SEMI@[78; 79) ";" | ||
86 | WHITESPACE@[79; 80) "\n" | ||
87 | R_CURLY@[80; 81) "}" | ||
88 | WHITESPACE@[81; 82) "\n" | ||