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