diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0061_record_lit.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0061_record_lit.rast | 119 |
1 files changed, 119 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0061_record_lit.rast b/crates/ra_syntax/test_data/parser/inline/ok/0061_record_lit.rast new file mode 100644 index 000000000..dcf527639 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0061_record_lit.rast | |||
@@ -0,0 +1,119 @@ | |||
1 | SOURCE_FILE@[0; 112) | ||
2 | FN_DEF@[0; 111) | ||
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; 111) | ||
12 | BLOCK@[9; 111) | ||
13 | L_CURLY@[9; 10) "{" | ||
14 | WHITESPACE@[10; 15) "\n " | ||
15 | EXPR_STMT@[15; 20) | ||
16 | RECORD_LIT@[15; 19) | ||
17 | PATH@[15; 16) | ||
18 | PATH_SEGMENT@[15; 16) | ||
19 | NAME_REF@[15; 16) | ||
20 | IDENT@[15; 16) "S" | ||
21 | WHITESPACE@[16; 17) " " | ||
22 | RECORD_FIELD_LIST@[17; 19) | ||
23 | L_CURLY@[17; 18) "{" | ||
24 | R_CURLY@[18; 19) "}" | ||
25 | SEMI@[19; 20) ";" | ||
26 | WHITESPACE@[20; 25) "\n " | ||
27 | EXPR_STMT@[25; 41) | ||
28 | RECORD_LIT@[25; 40) | ||
29 | PATH@[25; 26) | ||
30 | PATH_SEGMENT@[25; 26) | ||
31 | NAME_REF@[25; 26) | ||
32 | IDENT@[25; 26) "S" | ||
33 | WHITESPACE@[26; 27) " " | ||
34 | RECORD_FIELD_LIST@[27; 40) | ||
35 | L_CURLY@[27; 28) "{" | ||
36 | WHITESPACE@[28; 29) " " | ||
37 | RECORD_FIELD@[29; 30) | ||
38 | NAME_REF@[29; 30) | ||
39 | IDENT@[29; 30) "x" | ||
40 | COMMA@[30; 31) "," | ||
41 | WHITESPACE@[31; 32) " " | ||
42 | RECORD_FIELD@[32; 37) | ||
43 | NAME_REF@[32; 33) | ||
44 | IDENT@[32; 33) "y" | ||
45 | COLON@[33; 34) ":" | ||
46 | WHITESPACE@[34; 35) " " | ||
47 | LITERAL@[35; 37) | ||
48 | INT_NUMBER@[35; 37) "32" | ||
49 | COMMA@[37; 38) "," | ||
50 | WHITESPACE@[38; 39) " " | ||
51 | R_CURLY@[39; 40) "}" | ||
52 | SEMI@[40; 41) ";" | ||
53 | WHITESPACE@[41; 46) "\n " | ||
54 | EXPR_STMT@[46; 83) | ||
55 | RECORD_LIT@[46; 82) | ||
56 | PATH@[46; 47) | ||
57 | PATH_SEGMENT@[46; 47) | ||
58 | NAME_REF@[46; 47) | ||
59 | IDENT@[46; 47) "S" | ||
60 | WHITESPACE@[47; 48) " " | ||
61 | RECORD_FIELD_LIST@[48; 82) | ||
62 | L_CURLY@[48; 49) "{" | ||
63 | WHITESPACE@[49; 50) " " | ||
64 | RECORD_FIELD@[50; 51) | ||
65 | NAME_REF@[50; 51) | ||
66 | IDENT@[50; 51) "x" | ||
67 | COMMA@[51; 52) "," | ||
68 | WHITESPACE@[52; 53) " " | ||
69 | RECORD_FIELD@[53; 58) | ||
70 | NAME_REF@[53; 54) | ||
71 | IDENT@[53; 54) "y" | ||
72 | COLON@[54; 55) ":" | ||
73 | WHITESPACE@[55; 56) " " | ||
74 | LITERAL@[56; 58) | ||
75 | INT_NUMBER@[56; 58) "32" | ||
76 | COMMA@[58; 59) "," | ||
77 | WHITESPACE@[59; 60) " " | ||
78 | DOTDOT@[60; 62) ".." | ||
79 | CALL_EXPR@[62; 80) | ||
80 | PATH_EXPR@[62; 78) | ||
81 | PATH@[62; 78) | ||
82 | PATH@[62; 69) | ||
83 | PATH_SEGMENT@[62; 69) | ||
84 | NAME_REF@[62; 69) | ||
85 | IDENT@[62; 69) "Default" | ||
86 | COLONCOLON@[69; 71) "::" | ||
87 | PATH_SEGMENT@[71; 78) | ||
88 | NAME_REF@[71; 78) | ||
89 | IDENT@[71; 78) "default" | ||
90 | ARG_LIST@[78; 80) | ||
91 | L_PAREN@[78; 79) "(" | ||
92 | R_PAREN@[79; 80) ")" | ||
93 | WHITESPACE@[80; 81) " " | ||
94 | R_CURLY@[81; 82) "}" | ||
95 | SEMI@[82; 83) ";" | ||
96 | WHITESPACE@[83; 88) "\n " | ||
97 | EXPR_STMT@[88; 109) | ||
98 | RECORD_LIT@[88; 108) | ||
99 | PATH@[88; 99) | ||
100 | PATH_SEGMENT@[88; 99) | ||
101 | NAME_REF@[88; 99) | ||
102 | IDENT@[88; 99) "TupleStruct" | ||
103 | WHITESPACE@[99; 100) " " | ||
104 | RECORD_FIELD_LIST@[100; 108) | ||
105 | L_CURLY@[100; 101) "{" | ||
106 | WHITESPACE@[101; 102) " " | ||
107 | RECORD_FIELD@[102; 106) | ||
108 | NAME_REF@[102; 103) | ||
109 | INT_NUMBER@[102; 103) "0" | ||
110 | COLON@[103; 104) ":" | ||
111 | WHITESPACE@[104; 105) " " | ||
112 | LITERAL@[105; 106) | ||
113 | INT_NUMBER@[105; 106) "1" | ||
114 | WHITESPACE@[106; 107) " " | ||
115 | R_CURLY@[107; 108) "}" | ||
116 | SEMI@[108; 109) ";" | ||
117 | WHITESPACE@[109; 110) "\n" | ||
118 | R_CURLY@[110; 111) "}" | ||
119 | WHITESPACE@[111; 112) "\n" | ||