diff options
author | Kirill Osenkov <github@osenkov.com> | 2018-08-15 21:13:16 +0300 |
---|---|---|
committer | Kirill Osenkov <github@osenkov.com> | 2018-08-15 21:13:16 +0300 |
commit | b407d9744a34fd4647cf3e99068a28d728fd65a2 (patch) | |
tree | e6d6cef915f32dec4f2d16b1868045143deb589f /src/Text/Impl/EditorPrimitives/DefaultBufferPrimitive.cs | |
parent | cf974b266fb428d846e2e16a25a4eeb8f635c26f (diff) |
Updating to VS-Platform 15.8.519 (29d85337c7d2af248a692fd65ac37b444551e4cf).
Diffstat (limited to 'src/Text/Impl/EditorPrimitives/DefaultBufferPrimitive.cs')
-rw-r--r-- | src/Text/Impl/EditorPrimitives/DefaultBufferPrimitive.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Text/Impl/EditorPrimitives/DefaultBufferPrimitive.cs b/src/Text/Impl/EditorPrimitives/DefaultBufferPrimitive.cs index 19923d5..9e383d9 100644 --- a/src/Text/Impl/EditorPrimitives/DefaultBufferPrimitive.cs +++ b/src/Text/Impl/EditorPrimitives/DefaultBufferPrimitive.cs @@ -30,7 +30,7 @@ namespace Microsoft.VisualStudio.Text.EditorPrimitives.Implementation { if ((position < 0) || (position > _textBuffer.CurrentSnapshot.Length)) { - throw new ArgumentOutOfRangeException("position"); + throw new ArgumentOutOfRangeException(nameof(position)); } return _bufferPrimitivesFactory.CreateTextPoint(this, position); } @@ -39,14 +39,14 @@ namespace Microsoft.VisualStudio.Text.EditorPrimitives.Implementation { if ((line < 0) || (line > _textBuffer.CurrentSnapshot.LineCount)) { - throw new ArgumentOutOfRangeException("line"); + throw new ArgumentOutOfRangeException(nameof(line)); } ITextSnapshotLine snapshotLine = _textBuffer.CurrentSnapshot.GetLineFromLineNumber(line); if ((column < 0) || (column > snapshotLine.Length)) { - throw new ArgumentOutOfRangeException("column"); + throw new ArgumentOutOfRangeException(nameof(column)); } return _bufferPrimitivesFactory.CreateTextPoint(this, snapshotLine.Start + column); } @@ -55,7 +55,7 @@ namespace Microsoft.VisualStudio.Text.EditorPrimitives.Implementation { if ((line < 0) || (line > _textBuffer.CurrentSnapshot.LineCount)) { - throw new ArgumentOutOfRangeException("line"); + throw new ArgumentOutOfRangeException(nameof(line)); } ITextSnapshotLine snapshotLine = _textBuffer.CurrentSnapshot.GetLineFromLineNumber(line); @@ -67,11 +67,11 @@ namespace Microsoft.VisualStudio.Text.EditorPrimitives.Implementation { if (startPoint == null) { - throw new ArgumentNullException("startPoint"); + throw new ArgumentNullException(nameof(startPoint)); } if (endPoint == null) { - throw new ArgumentNullException("endPoint"); + throw new ArgumentNullException(nameof(endPoint)); } if (!object.ReferenceEquals(startPoint.TextBuffer, this)) @@ -91,12 +91,12 @@ namespace Microsoft.VisualStudio.Text.EditorPrimitives.Implementation { if ((startPosition < 0) || (startPosition > _textBuffer.CurrentSnapshot.Length)) { - throw new ArgumentOutOfRangeException("startPosition"); + throw new ArgumentOutOfRangeException(nameof(startPosition)); } if ((endPosition < 0) || (endPosition > _textBuffer.CurrentSnapshot.Length)) { - throw new ArgumentOutOfRangeException("endPosition"); + throw new ArgumentOutOfRangeException(nameof(endPosition)); } TextPoint startPoint = GetTextPoint(startPosition); |