diff options
author | Aleksey Kladov <[email protected]> | 2019-07-24 10:38:21 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-07-24 10:49:19 +0100 |
commit | 459241f272748ff2e57b2c7e84f5a04f78d67edb (patch) | |
tree | 2353f8f068962313d0b2748aab58b71c4ca456d2 /crates/ra_syntax/test_data/parser/inline/ok/0081_for_type.txt | |
parent | 4d544fbf9b664b6a29d358d3cb41cdd7cd15e4d6 (diff) |
move syntax tests to unit tests
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0081_for_type.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0081_for_type.txt | 159 |
1 files changed, 159 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0081_for_type.txt b/crates/ra_syntax/test_data/parser/inline/ok/0081_for_type.txt new file mode 100644 index 000000000..599cf9452 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0081_for_type.txt | |||
@@ -0,0 +1,159 @@ | |||
1 | SOURCE_FILE@[0; 135) | ||
2 | TYPE_ALIAS_DEF@[0; 28) | ||
3 | TYPE_KW@[0; 4) "type" | ||
4 | WHITESPACE@[4; 5) " " | ||
5 | NAME@[5; 6) | ||
6 | IDENT@[5; 6) "A" | ||
7 | WHITESPACE@[6; 7) " " | ||
8 | EQ@[7; 8) "=" | ||
9 | WHITESPACE@[8; 9) " " | ||
10 | FOR_TYPE@[9; 27) | ||
11 | FOR_KW@[9; 12) "for" | ||
12 | TYPE_PARAM_LIST@[12; 16) | ||
13 | L_ANGLE@[12; 13) "<" | ||
14 | LIFETIME_PARAM@[13; 15) | ||
15 | LIFETIME@[13; 15) "\'a" | ||
16 | R_ANGLE@[15; 16) ">" | ||
17 | WHITESPACE@[16; 17) " " | ||
18 | FN_POINTER_TYPE@[17; 27) | ||
19 | FN_KW@[17; 19) "fn" | ||
20 | PARAM_LIST@[19; 21) | ||
21 | L_PAREN@[19; 20) "(" | ||
22 | R_PAREN@[20; 21) ")" | ||
23 | WHITESPACE@[21; 22) " " | ||
24 | RET_TYPE@[22; 27) | ||
25 | THIN_ARROW@[22; 24) "->" | ||
26 | WHITESPACE@[24; 25) " " | ||
27 | TUPLE_TYPE@[25; 27) | ||
28 | L_PAREN@[25; 26) "(" | ||
29 | R_PAREN@[26; 27) ")" | ||
30 | SEMI@[27; 28) ";" | ||
31 | WHITESPACE@[28; 29) "\n" | ||
32 | FN_DEF@[29; 79) | ||
33 | FN_KW@[29; 31) "fn" | ||
34 | WHITESPACE@[31; 32) " " | ||
35 | NAME@[32; 35) | ||
36 | IDENT@[32; 35) "foo" | ||
37 | TYPE_PARAM_LIST@[35; 38) | ||
38 | L_ANGLE@[35; 36) "<" | ||
39 | TYPE_PARAM@[36; 37) | ||
40 | NAME@[36; 37) | ||
41 | IDENT@[36; 37) "T" | ||
42 | R_ANGLE@[37; 38) ">" | ||
43 | PARAM_LIST@[38; 46) | ||
44 | L_PAREN@[38; 39) "(" | ||
45 | PARAM@[39; 45) | ||
46 | BIND_PAT@[39; 41) | ||
47 | NAME@[39; 41) | ||
48 | IDENT@[39; 41) "_t" | ||
49 | COLON@[41; 42) ":" | ||
50 | WHITESPACE@[42; 43) " " | ||
51 | REFERENCE_TYPE@[43; 45) | ||
52 | AMP@[43; 44) "&" | ||
53 | PATH_TYPE@[44; 45) | ||
54 | PATH@[44; 45) | ||
55 | PATH_SEGMENT@[44; 45) | ||
56 | NAME_REF@[44; 45) | ||
57 | IDENT@[44; 45) "T" | ||
58 | R_PAREN@[45; 46) ")" | ||
59 | WHITESPACE@[46; 47) " " | ||
60 | WHERE_CLAUSE@[47; 76) | ||
61 | WHERE_KW@[47; 52) "where" | ||
62 | WHITESPACE@[52; 53) " " | ||
63 | WHERE_PRED@[53; 76) | ||
64 | FOR_TYPE@[53; 66) | ||
65 | FOR_KW@[53; 56) "for" | ||
66 | TYPE_PARAM_LIST@[56; 60) | ||
67 | L_ANGLE@[56; 57) "<" | ||
68 | LIFETIME_PARAM@[57; 59) | ||
69 | LIFETIME@[57; 59) "\'a" | ||
70 | R_ANGLE@[59; 60) ">" | ||
71 | WHITESPACE@[60; 61) " " | ||
72 | REFERENCE_TYPE@[61; 66) | ||
73 | AMP@[61; 62) "&" | ||
74 | LIFETIME@[62; 64) "\'a" | ||
75 | WHITESPACE@[64; 65) " " | ||
76 | PATH_TYPE@[65; 66) | ||
77 | PATH@[65; 66) | ||
78 | PATH_SEGMENT@[65; 66) | ||
79 | NAME_REF@[65; 66) | ||
80 | IDENT@[65; 66) "T" | ||
81 | COLON@[66; 67) ":" | ||
82 | WHITESPACE@[67; 68) " " | ||
83 | TYPE_BOUND_LIST@[68; 76) | ||
84 | TYPE_BOUND@[68; 76) | ||
85 | PATH_TYPE@[68; 76) | ||
86 | PATH@[68; 76) | ||
87 | PATH_SEGMENT@[68; 76) | ||
88 | NAME_REF@[68; 76) | ||
89 | IDENT@[68; 76) "Iterator" | ||
90 | WHITESPACE@[76; 77) " " | ||
91 | BLOCK@[77; 79) | ||
92 | L_CURLY@[77; 78) "{" | ||
93 | R_CURLY@[78; 79) "}" | ||
94 | WHITESPACE@[79; 80) "\n" | ||
95 | FN_DEF@[80; 134) | ||
96 | FN_KW@[80; 82) "fn" | ||
97 | WHITESPACE@[82; 83) " " | ||
98 | NAME@[83; 86) | ||
99 | IDENT@[83; 86) "bar" | ||
100 | TYPE_PARAM_LIST@[86; 89) | ||
101 | L_ANGLE@[86; 87) "<" | ||
102 | TYPE_PARAM@[87; 88) | ||
103 | NAME@[87; 88) | ||
104 | IDENT@[87; 88) "T" | ||
105 | R_ANGLE@[88; 89) ">" | ||
106 | PARAM_LIST@[89; 97) | ||
107 | L_PAREN@[89; 90) "(" | ||
108 | PARAM@[90; 96) | ||
109 | BIND_PAT@[90; 92) | ||
110 | NAME@[90; 92) | ||
111 | IDENT@[90; 92) "_t" | ||
112 | COLON@[92; 93) ":" | ||
113 | WHITESPACE@[93; 94) " " | ||
114 | REFERENCE_TYPE@[94; 96) | ||
115 | AMP@[94; 95) "&" | ||
116 | PATH_TYPE@[95; 96) | ||
117 | PATH@[95; 96) | ||
118 | PATH_SEGMENT@[95; 96) | ||
119 | NAME_REF@[95; 96) | ||
120 | IDENT@[95; 96) "T" | ||
121 | R_PAREN@[96; 97) ")" | ||
122 | WHITESPACE@[97; 98) " " | ||
123 | WHERE_CLAUSE@[98; 131) | ||
124 | WHERE_KW@[98; 103) "where" | ||
125 | WHITESPACE@[103; 104) " " | ||
126 | WHERE_PRED@[104; 131) | ||
127 | FOR_TYPE@[104; 121) | ||
128 | FOR_KW@[104; 107) "for" | ||
129 | TYPE_PARAM_LIST@[107; 111) | ||
130 | L_ANGLE@[107; 108) "<" | ||
131 | LIFETIME_PARAM@[108; 110) | ||
132 | LIFETIME@[108; 110) "\'a" | ||
133 | R_ANGLE@[110; 111) ">" | ||
134 | WHITESPACE@[111; 112) " " | ||
135 | REFERENCE_TYPE@[112; 121) | ||
136 | AMP@[112; 113) "&" | ||
137 | LIFETIME@[113; 115) "\'a" | ||
138 | WHITESPACE@[115; 116) " " | ||
139 | MUT_KW@[116; 119) "mut" | ||
140 | WHITESPACE@[119; 120) " " | ||
141 | PATH_TYPE@[120; 121) | ||
142 | PATH@[120; 121) | ||
143 | PATH_SEGMENT@[120; 121) | ||
144 | NAME_REF@[120; 121) | ||
145 | IDENT@[120; 121) "T" | ||
146 | COLON@[121; 122) ":" | ||
147 | WHITESPACE@[122; 123) " " | ||
148 | TYPE_BOUND_LIST@[123; 131) | ||
149 | TYPE_BOUND@[123; 131) | ||
150 | PATH_TYPE@[123; 131) | ||
151 | PATH@[123; 131) | ||
152 | PATH_SEGMENT@[123; 131) | ||
153 | NAME_REF@[123; 131) | ||
154 | IDENT@[123; 131) "Iterator" | ||
155 | WHITESPACE@[131; 132) " " | ||
156 | BLOCK@[132; 134) | ||
157 | L_CURLY@[132; 133) "{" | ||
158 | R_CURLY@[133; 134) "}" | ||
159 | WHITESPACE@[134; 135) "\n" | ||