217 references to ThrowHelper
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (217)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (3)
350
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.array);
352
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
354
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.index);
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+ValueBuilder.cs (2)
108
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.other);
227
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.other);
src\Dependencies\Collections\ImmutableSegmentedList`1.cs (4)
132
ThrowHelper
.ThrowArgumentOutOfRange_IndexMustBeLessException();
342
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
344
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.count);
555
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.comparison);
src\Dependencies\Collections\ImmutableSegmentedList`1+ValueBuilder.cs (4)
64
ThrowHelper
.ThrowArgumentOutOfRange_IndexMustBeLessException();
245
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
247
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.count);
311
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.comparison);
src\Dependencies\Collections\Internal\ArraySortHelper.cs (12)
41
ThrowHelper
.ThrowArgumentException_BadComparer(comparer);
45
ThrowHelper
.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_IComparerFailed, e);
58
ThrowHelper
.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_IComparerFailed, e);
74
ThrowHelper
.ThrowArgumentException_BadComparer(comparer);
78
ThrowHelper
.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_IComparerFailed, e);
331
ThrowHelper
.ThrowArgumentException_BadComparer(comparer);
335
ThrowHelper
.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_IComparerFailed, e);
356
ThrowHelper
.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_IComparerFailed, e);
681
ThrowHelper
.ThrowArgumentException_BadComparer(comparer);
685
ThrowHelper
.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_IComparerFailed, e);
934
ThrowHelper
.ThrowArgumentException_BadComparer(comparer);
938
ThrowHelper
.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_IComparerFailed, e);
src\Dependencies\Collections\Internal\SegmentedArraySegment`1.cs (3)
25
ThrowHelper
.ThrowIndexOutOfRangeException();
34
ThrowHelper
.ThrowArgumentOutOfRangeException();
47
ThrowHelper
.ThrowArgumentOutOfRangeException();
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
245
ThrowHelper
.ThrowArgumentNullException(argName);
src\Dependencies\Collections\RoslynEnumerable.cs (1)
16
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.source);
src\Dependencies\Collections\SegmentedArray.cs (19)
53
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.destinationArray);
139
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.destinationArray);
190
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
192
ThrowHelper
.ThrowLengthArgumentOutOfRange_ArgumentOutOfRange_NeedNonNegNum();
194
ThrowHelper
.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen);
218
ThrowHelper
.ThrowStartIndexArgumentOutOfRange_ArgumentOutOfRange_IndexMustBeLessOrEqual();
223
ThrowHelper
.ThrowCountArgumentOutOfRange_ArgumentOutOfRange_Count();
287
ThrowHelper
.ThrowStartIndexArgumentOutOfRange_ArgumentOutOfRange_IndexMustBeLess();
293
ThrowHelper
.ThrowCountArgumentOutOfRange_ArgumentOutOfRange_Count();
302
ThrowHelper
.ThrowStartIndexArgumentOutOfRange_ArgumentOutOfRange_IndexMustBeLess();
308
ThrowHelper
.ThrowCountArgumentOutOfRange_ArgumentOutOfRange_Count();
341
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
343
ThrowHelper
.ThrowLengthArgumentOutOfRange_ArgumentOutOfRange_NeedNonNegNum();
345
ThrowHelper
.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen);
384
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
386
ThrowHelper
.ThrowLengthArgumentOutOfRange_ArgumentOutOfRange_NeedNonNegNum();
388
ThrowHelper
.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen);
401
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.comparison);
670
ThrowHelper
.ThrowArgumentOutOfRangeException();
src\Dependencies\Collections\SegmentedDictionary`2.cs (76)
85
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity);
126
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.dictionary);
142
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.collection);
252
ThrowHelper
.ThrowKeyNotFoundException(key);
360
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.array);
365
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
370
ThrowHelper
.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall);
400
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.key);
480
ThrowHelper
.ThrowInvalidOperationException_ConcurrentOperationsNotSupported();
509
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.key);
553
ThrowHelper
.ThrowAddingDuplicateWithKeyArgumentException(key);
566
ThrowHelper
.ThrowInvalidOperationException_ConcurrentOperationsNotSupported();
592
ThrowHelper
.ThrowAddingDuplicateWithKeyArgumentException(key);
605
ThrowHelper
.ThrowInvalidOperationException_ConcurrentOperationsNotSupported();
700
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.key);
762
ThrowHelper
.ThrowInvalidOperationException_ConcurrentOperationsNotSupported();
777
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.key);
841
ThrowHelper
.ThrowInvalidOperationException_ConcurrentOperationsNotSupported();
877
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.array);
882
ThrowHelper
.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported);
887
ThrowHelper
.ThrowArgumentException(ExceptionResource.Arg_NonZeroLowerBound);
892
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
897
ThrowHelper
.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall);
920
ThrowHelper
.ThrowArgumentException_Argument_IncompatibleArrayType();
937
ThrowHelper
.ThrowArgumentException_Argument_IncompatibleArrayType();
952
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity);
999
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity);
1070
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.key);
1072
ThrowHelper
.IfNullAndNullsAreIllegalThenThrow<TValue>(value, ExceptionArgument.value);
1083
ThrowHelper
.ThrowWrongValueTypeArgumentException(value, typeof(TValue));
1088
ThrowHelper
.ThrowWrongKeyTypeArgumentException(key, typeof(TKey));
1097
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.key);
1106
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.key);
1108
ThrowHelper
.IfNullAndNullsAreIllegalThenThrow<TValue>(value, ExceptionArgument.value);
1120
ThrowHelper
.ThrowWrongValueTypeArgumentException(value, typeof(TValue));
1125
ThrowHelper
.ThrowWrongKeyTypeArgumentException(key, typeof(TKey));
1194
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion();
1227
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumOpCantHappen();
1243
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion();
1256
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumOpCantHappen();
1269
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumOpCantHappen();
1282
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumOpCantHappen();
1302
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.dictionary);
1315
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.array);
1320
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
1325
ThrowHelper
.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall);
1342
=>
ThrowHelper
.ThrowNotSupportedException(ExceptionResource.NotSupported_KeyCollectionSet);
1345
=>
ThrowHelper
.ThrowNotSupportedException(ExceptionResource.NotSupported_KeyCollectionSet);
1352
ThrowHelper
.ThrowNotSupportedException(ExceptionResource.NotSupported_KeyCollectionSet);
1372
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.array);
1377
ThrowHelper
.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported);
1382
ThrowHelper
.ThrowArgumentException(ExceptionResource.Arg_NonZeroLowerBound);
1387
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
1392
ThrowHelper
.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall);
1404
ThrowHelper
.ThrowArgumentException_Argument_IncompatibleArrayType();
1419
ThrowHelper
.ThrowArgumentException_Argument_IncompatibleArrayType();
1451
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion();
1478
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumOpCantHappen();
1489
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion();
1510
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.dictionary);
1523
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.array);
1528
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
1533
ThrowHelper
.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall);
1550
=>
ThrowHelper
.ThrowNotSupportedException(ExceptionResource.NotSupported_ValueCollectionSet);
1554
ThrowHelper
.ThrowNotSupportedException(ExceptionResource.NotSupported_ValueCollectionSet);
1559
=>
ThrowHelper
.ThrowNotSupportedException(ExceptionResource.NotSupported_ValueCollectionSet);
1580
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.array);
1585
ThrowHelper
.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported);
1590
ThrowHelper
.ThrowArgumentException(ExceptionResource.Arg_NonZeroLowerBound);
1595
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
1600
ThrowHelper
.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall);
1612
ThrowHelper
.ThrowArgumentException_Argument_IncompatibleArrayType();
1627
ThrowHelper
.ThrowArgumentException_Argument_IncompatibleArrayType();
1659
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion();
1685
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumOpCantHappen();
1696
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion();
src\Dependencies\Collections\SegmentedHashSet`1.cs (24)
107
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.collection);
140
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity);
250
ThrowHelper
.ThrowInvalidOperationException_ConcurrentOperationsNotSupported();
272
ThrowHelper
.ThrowInvalidOperationException_ConcurrentOperationsNotSupported();
347
ThrowHelper
.ThrowInvalidOperationException_ConcurrentOperationsNotSupported();
418
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.other);
433
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.other);
470
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.other);
499
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.other);
538
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.other);
574
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.other);
622
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.other);
667
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.other);
710
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.other);
742
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.other);
791
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.array);
816
ThrowHelper
.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall);
836
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.match);
876
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity);
1055
ThrowHelper
.ThrowInvalidOperationException_ConcurrentOperationsNotSupported();
1079
ThrowHelper
.ThrowInvalidOperationException_ConcurrentOperationsNotSupported();
1405
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion();
1435
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumOpCantHappen();
1446
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion();
src\Dependencies\Collections\SegmentedList`1.cs (68)
61
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
76
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.collection);
131
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.value, ExceptionResource.ArgumentOutOfRange_SmallCapacity);
202
ThrowHelper
.ThrowArgumentOutOfRange_IndexMustBeLessException();
211
ThrowHelper
.ThrowArgumentOutOfRange_IndexMustBeLessException();
230
ThrowHelper
.IfNullAndNullsAreIllegalThenThrow<T>(value, ExceptionArgument.value);
238
ThrowHelper
.ThrowWrongValueTypeArgumentException(value, typeof(T));
277
ThrowHelper
.IfNullAndNullsAreIllegalThenThrow<T>(item, ExceptionArgument.item);
285
ThrowHelper
.ThrowWrongValueTypeArgumentException(item, typeof(T));
299
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.collection);
367
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
369
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
371
ThrowHelper
.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen);
433
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.converter);
456
ThrowHelper
.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported);
466
ThrowHelper
.ThrowArgumentException_Argument_IncompatibleArrayType();
478
ThrowHelper
.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen);
502
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
578
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.match);
595
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.match);
619
ThrowHelper
.ThrowStartIndexArgumentOutOfRange_ArgumentOutOfRange_IndexMustBeLessOrEqual();
624
ThrowHelper
.ThrowCountArgumentOutOfRange_ArgumentOutOfRange_Count();
629
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.match);
645
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.match);
668
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.match);
676
ThrowHelper
.ThrowStartIndexArgumentOutOfRange_ArgumentOutOfRange_IndexMustBeLess();
684
ThrowHelper
.ThrowStartIndexArgumentOutOfRange_ArgumentOutOfRange_IndexMustBeLess();
691
ThrowHelper
.ThrowCountArgumentOutOfRange_ArgumentOutOfRange_Count();
709
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.action);
724
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion();
749
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
754
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
759
ThrowHelper
.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen);
814
ThrowHelper
.ThrowArgumentOutOfRange_IndexMustBeLessOrEqualException();
830
ThrowHelper
.ThrowArgumentOutOfRange_IndexMustBeLessOrEqualException();
833
ThrowHelper
.ThrowCountArgumentOutOfRange_ArgumentOutOfRange_Count();
841
ThrowHelper
.ThrowArgumentOutOfRange_IndexMustBeLessOrEqualException();
844
ThrowHelper
.ThrowCountArgumentOutOfRange_ArgumentOutOfRange_Count();
858
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_ListInsert);
873
ThrowHelper
.IfNullAndNullsAreIllegalThenThrow<T>(item, ExceptionArgument.item);
881
ThrowHelper
.ThrowWrongValueTypeArgumentException(item, typeof(T));
894
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.collection);
899
ThrowHelper
.ThrowArgumentOutOfRange_IndexMustBeLessOrEqualException();
985
ThrowHelper
.ThrowArgumentOutOfRange_IndexMustBeLessException();
1008
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
1013
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
1018
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_BiggerThanCollection);
1023
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_BiggerThanCollection);
1039
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
1044
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
1049
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_BiggerThanCollection);
1054
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_BiggerThanCollection);
1088
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.match);
1132
ThrowHelper
.ThrowArgumentOutOfRange_IndexMustBeLessException();
1153
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
1158
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
1162
ThrowHelper
.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen);
1195
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
1200
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
1204
ThrowHelper
.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen);
1235
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
1240
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
1244
ThrowHelper
.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen);
1257
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.comparison);
1304
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.match);
1353
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion();
1369
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumOpCantHappen();
1379
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion();