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/0070_stmt_bin_expr_ambiguity.txt | |
parent | 4d544fbf9b664b6a29d358d3cb41cdd7cd15e4d6 (diff) |
move syntax tests to unit tests
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0070_stmt_bin_expr_ambiguity.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0070_stmt_bin_expr_ambiguity.txt | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0070_stmt_bin_expr_ambiguity.txt b/crates/ra_syntax/test_data/parser/inline/ok/0070_stmt_bin_expr_ambiguity.txt new file mode 100644 index 000000000..40333d565 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0070_stmt_bin_expr_ambiguity.txt | |||
@@ -0,0 +1,52 @@ | |||
1 | SOURCE_FILE@[0; 46) | ||
2 | FN_DEF@[0; 45) | ||
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; 45) | ||
12 | L_CURLY@[9; 10) "{" | ||
13 | WHITESPACE@[10; 15) "\n " | ||
14 | LET_STMT@[15; 31) | ||
15 | LET_KW@[15; 18) "let" | ||
16 | WHITESPACE@[18; 19) " " | ||
17 | PLACEHOLDER_PAT@[19; 20) | ||
18 | UNDERSCORE@[19; 20) "_" | ||
19 | WHITESPACE@[20; 21) " " | ||
20 | EQ@[21; 22) "=" | ||
21 | WHITESPACE@[22; 23) " " | ||
22 | BIN_EXPR@[23; 30) | ||
23 | BLOCK_EXPR@[23; 26) | ||
24 | BLOCK@[23; 26) | ||
25 | L_CURLY@[23; 24) "{" | ||
26 | LITERAL@[24; 25) | ||
27 | INT_NUMBER@[24; 25) "1" | ||
28 | R_CURLY@[25; 26) "}" | ||
29 | WHITESPACE@[26; 27) " " | ||
30 | AMP@[27; 28) "&" | ||
31 | WHITESPACE@[28; 29) " " | ||
32 | LITERAL@[29; 30) | ||
33 | INT_NUMBER@[29; 30) "2" | ||
34 | SEMI@[30; 31) ";" | ||
35 | WHITESPACE@[31; 36) "\n " | ||
36 | EXPR_STMT@[36; 39) | ||
37 | BLOCK_EXPR@[36; 39) | ||
38 | BLOCK@[36; 39) | ||
39 | L_CURLY@[36; 37) "{" | ||
40 | LITERAL@[37; 38) | ||
41 | INT_NUMBER@[37; 38) "1" | ||
42 | R_CURLY@[38; 39) "}" | ||
43 | WHITESPACE@[39; 40) " " | ||
44 | EXPR_STMT@[40; 43) | ||
45 | REF_EXPR@[40; 42) | ||
46 | AMP@[40; 41) "&" | ||
47 | LITERAL@[41; 42) | ||
48 | INT_NUMBER@[41; 42) "2" | ||
49 | SEMI@[42; 43) ";" | ||
50 | WHITESPACE@[43; 44) "\n" | ||
51 | R_CURLY@[44; 45) "}" | ||
52 | WHITESPACE@[45; 46) "\n" | ||