diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0027_ref_pat.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0027_ref_pat.rast | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0027_ref_pat.rast b/crates/ra_syntax/test_data/parser/inline/ok/0027_ref_pat.rast new file mode 100644 index 000000000..0f1a367f7 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0027_ref_pat.rast | |||
@@ -0,0 +1,50 @@ | |||
1 | SOURCE_FILE@[0; 52) | ||
2 | FN_DEF@[0; 51) | ||
3 | FN_KW@[0; 2) "fn" | ||
4 | WHITESPACE@[2; 3) " " | ||
5 | NAME@[3; 7) | ||
6 | IDENT@[3; 7) "main" | ||
7 | PARAM_LIST@[7; 9) | ||
8 | L_PAREN@[7; 8) "(" | ||
9 | R_PAREN@[8; 9) ")" | ||
10 | WHITESPACE@[9; 10) " " | ||
11 | BLOCK_EXPR@[10; 51) | ||
12 | BLOCK@[10; 51) | ||
13 | L_CURLY@[10; 11) "{" | ||
14 | WHITESPACE@[11; 16) "\n " | ||
15 | LET_STMT@[16; 28) | ||
16 | LET_KW@[16; 19) "let" | ||
17 | WHITESPACE@[19; 20) " " | ||
18 | REF_PAT@[20; 22) | ||
19 | AMP@[20; 21) "&" | ||
20 | BIND_PAT@[21; 22) | ||
21 | NAME@[21; 22) | ||
22 | IDENT@[21; 22) "a" | ||
23 | WHITESPACE@[22; 23) " " | ||
24 | EQ@[23; 24) "=" | ||
25 | WHITESPACE@[24; 25) " " | ||
26 | TUPLE_EXPR@[25; 27) | ||
27 | L_PAREN@[25; 26) "(" | ||
28 | R_PAREN@[26; 27) ")" | ||
29 | SEMI@[27; 28) ";" | ||
30 | WHITESPACE@[28; 33) "\n " | ||
31 | LET_STMT@[33; 49) | ||
32 | LET_KW@[33; 36) "let" | ||
33 | WHITESPACE@[36; 37) " " | ||
34 | REF_PAT@[37; 43) | ||
35 | AMP@[37; 38) "&" | ||
36 | MUT_KW@[38; 41) "mut" | ||
37 | WHITESPACE@[41; 42) " " | ||
38 | BIND_PAT@[42; 43) | ||
39 | NAME@[42; 43) | ||
40 | IDENT@[42; 43) "b" | ||
41 | WHITESPACE@[43; 44) " " | ||
42 | EQ@[44; 45) "=" | ||
43 | WHITESPACE@[45; 46) " " | ||
44 | TUPLE_EXPR@[46; 48) | ||
45 | L_PAREN@[46; 47) "(" | ||
46 | R_PAREN@[47; 48) ")" | ||
47 | SEMI@[48; 49) ";" | ||
48 | WHITESPACE@[49; 50) "\n" | ||
49 | R_CURLY@[50; 51) "}" | ||
50 | WHITESPACE@[51; 52) "\n" | ||