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