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