32 references to ThrowIfNegative
Microsoft.AspNetCore.Razor.Utilities.Shared (11)
ImmutableArrayExtensions.cs (1)
39ArgHelper.ThrowIfNegative(index);
MemoryBuilder`1.cs (1)
26ArgHelper.ThrowIfNegative(initialCapacity);
PooledArrayBufferWriter`1.cs (2)
126ArgHelper.ThrowIfNegative(count); 163ArgHelper.ThrowIfNegative(sizeHint);
PooledObjects\ArrayBuilderPool`1.Policy.cs (2)
22ArgHelper.ThrowIfNegative(initialCapacity); 23ArgHelper.ThrowIfNegative(maximumObjectSize);
PooledObjects\DictionaryPool`2.Policy.cs (1)
20ArgHelper.ThrowIfNegative(maximumObjectSize);
PooledObjects\HashSetPool`1.Policy.cs (1)
20ArgHelper.ThrowIfNegative(maximumObjectSize);
ReadOnlyListExtensions.cs (3)
1040ArgHelper.ThrowIfNegative(start); 1068ArgHelper.ThrowIfNegative(start); 1069ArgHelper.ThrowIfNegative(count);
Microsoft.AspNetCore.Razor.Utilities.Shared.UnitTests (1)
ArgHelperTests.cs (1)
96Verify(() => ArgHelper.ThrowIfNegative(v), exceptionType);
Microsoft.CodeAnalysis.Razor.Compiler (18)
Language\CodeGeneration\CodeWriter.cs (5)
115ArgHelper.ThrowIfNegative(value); 215ArgHelper.ThrowIfNegative(startIndex); 216ArgHelper.ThrowIfNegative(count); 391ArgHelper.ThrowIfNegative(index); 392ArgHelper.ThrowIfNegative(count);
Language\CodeGeneration\LinePragma.cs (2)
18ArgHelper.ThrowIfNegative(startLineIndex); 19ArgHelper.ThrowIfNegative(endLineIndex);
Language\Legacy\SpanEditHandler.cs (1)
40ArgHelper.ThrowIfNegative(index, nameof(acceptedCharacters));
Language\Syntax\SyntaxList`1.cs (3)
166ArgHelper.ThrowIfNegative(index); 199ArgHelper.ThrowIfNegative(index); 264ArgHelper.ThrowIfNegative(index);
Language\Syntax\SyntaxTokenList.cs (3)
181ArgHelper.ThrowIfNegative(index); 209ArgHelper.ThrowIfNegative(index); 270ArgHelper.ThrowIfNegative(index);
Language\TagHelperCollection.Builder.cs (1)
61ArgHelper.ThrowIfNegative(index);
Language\TagHelperCollection.MultiSegmentCollection.cs (1)
65ArgHelper.ThrowIfNegative(index);
Language\TagHelperCollection.RefBuilder.cs (1)
61ArgHelper.ThrowIfNegative(index);
Language\TagHelperCollection.SingleSegmentCollection.cs (1)
46ArgHelper.ThrowIfNegative(index);
Microsoft.CodeAnalysis.Razor.Workspaces (2)
Extensions\TextLineExtensions.cs (1)
13ArgHelper.ThrowIfNegative(offset);
Formatting\IndentCache.cs (1)
27ArgHelper.ThrowIfNegative(size);