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/DifferenceAlgorithm/SnapshotLineList.cs | |
parent | cf974b266fb428d846e2e16a25a4eeb8f635c26f (diff) |
Updating to VS-Platform 15.8.519 (29d85337c7d2af248a692fd65ac37b444551e4cf).
Diffstat (limited to 'src/Text/Impl/DifferenceAlgorithm/SnapshotLineList.cs')
-rw-r--r-- | src/Text/Impl/DifferenceAlgorithm/SnapshotLineList.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Impl/DifferenceAlgorithm/SnapshotLineList.cs b/src/Text/Impl/DifferenceAlgorithm/SnapshotLineList.cs index 47df212..20e92c3 100644 --- a/src/Text/Impl/DifferenceAlgorithm/SnapshotLineList.cs +++ b/src/Text/Impl/DifferenceAlgorithm/SnapshotLineList.cs @@ -27,7 +27,7 @@ namespace Microsoft.VisualStudio.Text.Differencing.Implementation public SnapshotLineList(SnapshotSpan snapshotSpan, Func<ITextSnapshotLine, string> getLineTextCallback, StringDifferenceOptions options) { if (getLineTextCallback == null) - throw new ArgumentNullException("getLineTextCallback"); + throw new ArgumentNullException(nameof(getLineTextCallback)); if ((options.DifferenceType & StringDifferenceTypes.Line) == 0) throw new InvalidOperationException("This collection can only be used for line differencing"); @@ -96,7 +96,7 @@ namespace Microsoft.VisualStudio.Text.Differencing.Implementation SnapshotSpan GetSpanOfIndex(int index) { if (index < 0 || index >= _lineSpan.Length) - throw new ArgumentOutOfRangeException("index"); + throw new ArgumentOutOfRangeException(nameof(index)); ITextSnapshotLine line = _snapshotSpan.Snapshot.GetLineFromLineNumber(_lineSpan.Start + index); SnapshotSpan? lineSpan = line.ExtentIncludingLineBreak.Intersection(_snapshotSpan); |