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