diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/err/0009_attr_on_expr_not_allowed.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/err/0009_attr_on_expr_not_allowed.rast | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/err/0009_attr_on_expr_not_allowed.rast b/crates/ra_syntax/test_data/parser/inline/err/0009_attr_on_expr_not_allowed.rast new file mode 100644 index 000000000..e6d3a5c95 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/err/0009_attr_on_expr_not_allowed.rast | |||
@@ -0,0 +1,61 @@ | |||
1 | SOURCE_FILE@[0; 48) | ||
2 | FN_DEF@[0; 47) | ||
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; 47) | ||
12 | BLOCK@[9; 47) | ||
13 | L_CURLY@[9; 10) "{" | ||
14 | WHITESPACE@[10; 14) "\n " | ||
15 | EXPR_STMT@[14; 25) | ||
16 | ATTR@[14; 18) | ||
17 | POUND@[14; 15) "#" | ||
18 | L_BRACK@[15; 16) "[" | ||
19 | PATH@[16; 17) | ||
20 | PATH_SEGMENT@[16; 17) | ||
21 | NAME_REF@[16; 17) | ||
22 | IDENT@[16; 17) "A" | ||
23 | R_BRACK@[17; 18) "]" | ||
24 | WHITESPACE@[18; 19) " " | ||
25 | BIN_EXPR@[19; 24) | ||
26 | LITERAL@[19; 20) | ||
27 | INT_NUMBER@[19; 20) "1" | ||
28 | WHITESPACE@[20; 21) " " | ||
29 | PLUS@[21; 22) "+" | ||
30 | WHITESPACE@[22; 23) " " | ||
31 | LITERAL@[23; 24) | ||
32 | INT_NUMBER@[23; 24) "2" | ||
33 | SEMI@[24; 25) ";" | ||
34 | WHITESPACE@[25; 29) "\n " | ||
35 | EXPR_STMT@[29; 45) | ||
36 | ATTR@[29; 33) | ||
37 | POUND@[29; 30) "#" | ||
38 | L_BRACK@[30; 31) "[" | ||
39 | PATH@[31; 32) | ||
40 | PATH_SEGMENT@[31; 32) | ||
41 | NAME_REF@[31; 32) | ||
42 | IDENT@[31; 32) "B" | ||
43 | R_BRACK@[32; 33) "]" | ||
44 | WHITESPACE@[33; 34) " " | ||
45 | IF_EXPR@[34; 44) | ||
46 | IF_KW@[34; 36) "if" | ||
47 | WHITESPACE@[36; 37) " " | ||
48 | CONDITION@[37; 41) | ||
49 | LITERAL@[37; 41) | ||
50 | TRUE_KW@[37; 41) "true" | ||
51 | WHITESPACE@[41; 42) " " | ||
52 | BLOCK_EXPR@[42; 44) | ||
53 | BLOCK@[42; 44) | ||
54 | L_CURLY@[42; 43) "{" | ||
55 | R_CURLY@[43; 44) "}" | ||
56 | SEMI@[44; 45) ";" | ||
57 | WHITESPACE@[45; 46) "\n" | ||
58 | R_CURLY@[46; 47) "}" | ||
59 | WHITESPACE@[47; 48) "\n" | ||
60 | error [24; 24): attributes are not allowed on BIN_EXPR | ||
61 | error [44; 44): attributes are not allowed on IF_EXPR | ||