File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,14 @@ class RustLangItem
56
56
DEREF,
57
57
DEREF_MUT,
58
58
59
+ // https://github.com/rust-lang/rust/blob/master/library/core/src/ops/range.rs
60
+ RANGE_FULL,
61
+ RANGE,
62
+ RANGE_FROM,
63
+ RANGE_TO,
64
+ RANGE_INCLUSIVE,
65
+ RANGE_TO_INCLUSIVE,
66
+
59
67
UNKNOWN,
60
68
};
61
69
@@ -157,6 +165,26 @@ class RustLangItem
157
165
{
158
166
return ItemType::DEREF_MUT;
159
167
}
168
+ else if (item.compare (" Range" ) == 0 )
169
+ {
170
+ return ItemType::RANGE;
171
+ }
172
+ else if (item.compare (" RangeFrom" ) == 0 )
173
+ {
174
+ return ItemType::RANGE_FROM;
175
+ }
176
+ else if (item.compare (" RangeTo" ) == 0 )
177
+ {
178
+ return ItemType::RANGE_TO;
179
+ }
180
+ else if (item.compare (" RangeInclusive" ) == 0 )
181
+ {
182
+ return ItemType::RANGE_INCLUSIVE;
183
+ }
184
+ else if (item.compare (" RangeToInclusive" ) == 0 )
185
+ {
186
+ return ItemType::RANGE_TO_INCLUSIVE;
187
+ }
160
188
161
189
return ItemType::UNKNOWN;
162
190
}
@@ -213,6 +241,18 @@ class RustLangItem
213
241
return " deref" ;
214
242
case DEREF_MUT:
215
243
return " deref_mut" ;
244
+ case RANGE_FULL:
245
+ return " RangeFull" ;
246
+ case RANGE:
247
+ return " Range" ;
248
+ case RANGE_FROM:
249
+ return " RangeFrom" ;
250
+ case RANGE_TO:
251
+ return " RangeTo" ;
252
+ case RANGE_INCLUSIVE:
253
+ return " RangeInclusive" ;
254
+ case RANGE_TO_INCLUSIVE:
255
+ return " RangeToInclusive" ;
216
256
217
257
case UNKNOWN:
218
258
return " <UNKNOWN>" ;
You can’t perform that action at this time.
0 commit comments