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