diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0143_box_pat.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0143_box_pat.rast | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0143_box_pat.rast b/crates/ra_syntax/test_data/parser/inline/ok/0143_box_pat.rast new file mode 100644 index 000000000..4d2048711 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0143_box_pat.rast | |||
@@ -0,0 +1,110 @@ | |||
1 | SOURCE_FILE@[0; 118) | ||
2 | FN_DEF@[0; 117) | ||
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; 117) | ||
12 | BLOCK@[10; 117) | ||
13 | L_CURLY@[10; 11) "{" | ||
14 | WHITESPACE@[11; 16) "\n " | ||
15 | LET_STMT@[16; 31) | ||
16 | LET_KW@[16; 19) "let" | ||
17 | WHITESPACE@[19; 20) " " | ||
18 | BOX_PAT@[20; 25) | ||
19 | BOX_KW@[20; 23) "box" | ||
20 | WHITESPACE@[23; 24) " " | ||
21 | BIND_PAT@[24; 25) | ||
22 | NAME@[24; 25) | ||
23 | IDENT@[24; 25) "i" | ||
24 | WHITESPACE@[25; 26) " " | ||
25 | EQ@[26; 27) "=" | ||
26 | WHITESPACE@[27; 28) " " | ||
27 | TUPLE_EXPR@[28; 30) | ||
28 | L_PAREN@[28; 29) "(" | ||
29 | R_PAREN@[29; 30) ")" | ||
30 | SEMI@[30; 31) ";" | ||
31 | WHITESPACE@[31; 36) "\n " | ||
32 | LET_STMT@[36; 87) | ||
33 | LET_KW@[36; 39) "let" | ||
34 | WHITESPACE@[39; 40) " " | ||
35 | BOX_PAT@[40; 81) | ||
36 | BOX_KW@[40; 43) "box" | ||
37 | WHITESPACE@[43; 44) " " | ||
38 | RECORD_PAT@[44; 81) | ||
39 | PATH@[44; 49) | ||
40 | PATH_SEGMENT@[44; 49) | ||
41 | NAME_REF@[44; 49) | ||
42 | IDENT@[44; 49) "Outer" | ||
43 | WHITESPACE@[49; 50) " " | ||
44 | RECORD_FIELD_PAT_LIST@[50; 81) | ||
45 | L_CURLY@[50; 51) "{" | ||
46 | WHITESPACE@[51; 52) " " | ||
47 | BOX_PAT@[52; 57) | ||
48 | BOX_KW@[52; 55) "box" | ||
49 | WHITESPACE@[55; 56) " " | ||
50 | BIND_PAT@[56; 57) | ||
51 | NAME@[56; 57) | ||
52 | IDENT@[56; 57) "i" | ||
53 | COMMA@[57; 58) "," | ||
54 | WHITESPACE@[58; 59) " " | ||
55 | RECORD_FIELD_PAT@[59; 79) | ||
56 | NAME@[59; 60) | ||
57 | IDENT@[59; 60) "j" | ||
58 | COLON@[60; 61) ":" | ||
59 | WHITESPACE@[61; 62) " " | ||
60 | BOX_PAT@[62; 79) | ||
61 | BOX_KW@[62; 65) "box" | ||
62 | WHITESPACE@[65; 66) " " | ||
63 | TUPLE_STRUCT_PAT@[66; 79) | ||
64 | PATH@[66; 71) | ||
65 | PATH_SEGMENT@[66; 71) | ||
66 | NAME_REF@[66; 71) | ||
67 | IDENT@[66; 71) "Inner" | ||
68 | L_PAREN@[71; 72) "(" | ||
69 | BOX_PAT@[72; 78) | ||
70 | BOX_KW@[72; 75) "box" | ||
71 | WHITESPACE@[75; 76) " " | ||
72 | REF_PAT@[76; 78) | ||
73 | AMP@[76; 77) "&" | ||
74 | BIND_PAT@[77; 78) | ||
75 | NAME@[77; 78) | ||
76 | IDENT@[77; 78) "x" | ||
77 | R_PAREN@[78; 79) ")" | ||
78 | WHITESPACE@[79; 80) " " | ||
79 | R_CURLY@[80; 81) "}" | ||
80 | WHITESPACE@[81; 82) " " | ||
81 | EQ@[82; 83) "=" | ||
82 | WHITESPACE@[83; 84) " " | ||
83 | TUPLE_EXPR@[84; 86) | ||
84 | L_PAREN@[84; 85) "(" | ||
85 | R_PAREN@[85; 86) ")" | ||
86 | SEMI@[86; 87) ";" | ||
87 | WHITESPACE@[87; 92) "\n " | ||
88 | LET_STMT@[92; 115) | ||
89 | LET_KW@[92; 95) "let" | ||
90 | WHITESPACE@[95; 96) " " | ||
91 | BOX_PAT@[96; 109) | ||
92 | BOX_KW@[96; 99) "box" | ||
93 | WHITESPACE@[99; 100) " " | ||
94 | BIND_PAT@[100; 109) | ||
95 | REF_KW@[100; 103) "ref" | ||
96 | WHITESPACE@[103; 104) " " | ||
97 | MUT_KW@[104; 107) "mut" | ||
98 | WHITESPACE@[107; 108) " " | ||
99 | NAME@[108; 109) | ||
100 | IDENT@[108; 109) "i" | ||
101 | WHITESPACE@[109; 110) " " | ||
102 | EQ@[110; 111) "=" | ||
103 | WHITESPACE@[111; 112) " " | ||
104 | TUPLE_EXPR@[112; 114) | ||
105 | L_PAREN@[112; 113) "(" | ||
106 | R_PAREN@[113; 114) ")" | ||
107 | SEMI@[114; 115) ";" | ||
108 | WHITESPACE@[115; 116) "\n" | ||
109 | R_CURLY@[116; 117) "}" | ||
110 | WHITESPACE@[117; 118) "\n" | ||