diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0019_unary_expr.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0019_unary_expr.rast | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0019_unary_expr.rast b/crates/ra_syntax/test_data/parser/inline/ok/0019_unary_expr.rast new file mode 100644 index 000000000..2d71efd86 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0019_unary_expr.rast | |||
@@ -0,0 +1,45 @@ | |||
1 | SOURCE_FILE@[0; 44) | ||
2 | FN_DEF@[0; 43) | ||
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; 43) | ||
12 | BLOCK@[9; 43) | ||
13 | L_CURLY@[9; 10) "{" | ||
14 | WHITESPACE@[10; 15) "\n " | ||
15 | EXPR_STMT@[15; 20) | ||
16 | PREFIX_EXPR@[15; 19) | ||
17 | STAR@[15; 16) "*" | ||
18 | PREFIX_EXPR@[16; 19) | ||
19 | STAR@[16; 17) "*" | ||
20 | REF_EXPR@[17; 19) | ||
21 | AMP@[17; 18) "&" | ||
22 | LITERAL@[18; 19) | ||
23 | INT_NUMBER@[18; 19) "1" | ||
24 | SEMI@[19; 20) ";" | ||
25 | WHITESPACE@[20; 25) "\n " | ||
26 | EXPR_STMT@[25; 32) | ||
27 | PREFIX_EXPR@[25; 31) | ||
28 | EXCL@[25; 26) "!" | ||
29 | PREFIX_EXPR@[26; 31) | ||
30 | EXCL@[26; 27) "!" | ||
31 | LITERAL@[27; 31) | ||
32 | TRUE_KW@[27; 31) "true" | ||
33 | SEMI@[31; 32) ";" | ||
34 | WHITESPACE@[32; 37) "\n " | ||
35 | EXPR_STMT@[37; 41) | ||
36 | PREFIX_EXPR@[37; 40) | ||
37 | MINUS@[37; 38) "-" | ||
38 | PREFIX_EXPR@[38; 40) | ||
39 | MINUS@[38; 39) "-" | ||
40 | LITERAL@[39; 40) | ||
41 | INT_NUMBER@[39; 40) "1" | ||
42 | SEMI@[40; 41) ";" | ||
43 | WHITESPACE@[41; 42) "\n" | ||
44 | R_CURLY@[42; 43) "}" | ||
45 | WHITESPACE@[43; 44) "\n" | ||