Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vs-editor-api.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Osenkov <github@osenkov.com>2018-08-15 21:13:16 +0300
committerKirill Osenkov <github@osenkov.com>2018-08-15 21:13:16 +0300
commitb407d9744a34fd4647cf3e99068a28d728fd65a2 (patch)
treee6d6cef915f32dec4f2d16b1868045143deb589f /src/Text/Impl/TextModel/TrackingSpan.cs
parentcf974b266fb428d846e2e16a25a4eeb8f635c26f (diff)
Updating to VS-Platform 15.8.519 (29d85337c7d2af248a692fd65ac37b444551e4cf).
Diffstat (limited to 'src/Text/Impl/TextModel/TrackingSpan.cs')
-rw-r--r--src/Text/Impl/TextModel/TrackingSpan.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Text/Impl/TextModel/TrackingSpan.cs b/src/Text/Impl/TextModel/TrackingSpan.cs
index 8ffb5fe..82d5d55 100644
--- a/src/Text/Impl/TextModel/TrackingSpan.cs
+++ b/src/Text/Impl/TextModel/TrackingSpan.cs
@@ -21,15 +21,15 @@ namespace Microsoft.VisualStudio.Text.Implementation
{
if (version == null)
{
- throw new ArgumentNullException("version");
+ throw new ArgumentNullException(nameof(version));
}
if (span.End > version.Length)
{
- throw new ArgumentOutOfRangeException("span");
+ throw new ArgumentOutOfRangeException(nameof(span));
}
if (trackingMode < SpanTrackingMode.EdgeExclusive || trackingMode > SpanTrackingMode.Custom)
{
- throw new ArgumentOutOfRangeException("trackingMode");
+ throw new ArgumentOutOfRangeException(nameof(trackingMode));
}
this.trackingMode = trackingMode;
@@ -50,7 +50,7 @@ namespace Microsoft.VisualStudio.Text.Implementation
{
if (version == null)
{
- throw new ArgumentNullException("version");
+ throw new ArgumentNullException(nameof(version));
}
if (version.TextBuffer != this.TextBuffer)
{
@@ -63,7 +63,7 @@ namespace Microsoft.VisualStudio.Text.Implementation
{
if (snapshot == null)
{
- throw new ArgumentNullException("snapshot");
+ throw new ArgumentNullException(nameof(snapshot));
}
if (snapshot.TextBuffer != this.TextBuffer)
{