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/ClassificationAggregator/ClassifierAggregator.cs | |
parent | cf974b266fb428d846e2e16a25a4eeb8f635c26f (diff) |
Updating to VS-Platform 15.8.519 (29d85337c7d2af248a692fd65ac37b444551e4cf).
Diffstat (limited to 'src/Text/Impl/ClassificationAggregator/ClassifierAggregator.cs')
-rw-r--r-- | src/Text/Impl/ClassificationAggregator/ClassifierAggregator.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Text/Impl/ClassificationAggregator/ClassifierAggregator.cs b/src/Text/Impl/ClassificationAggregator/ClassifierAggregator.cs index b10eee8..95b3bdf 100644 --- a/src/Text/Impl/ClassificationAggregator/ClassifierAggregator.cs +++ b/src/Text/Impl/ClassificationAggregator/ClassifierAggregator.cs @@ -37,15 +37,15 @@ namespace Microsoft.VisualStudio.Text.Classification.Implementation // Validate. if (textBuffer == null) { - throw new ArgumentNullException("textBuffer"); + throw new ArgumentNullException(nameof(textBuffer)); } if (bufferTagAggregatorFactory == null) { - throw new ArgumentNullException("bufferTagAggregatorFactory"); + throw new ArgumentNullException(nameof(bufferTagAggregatorFactory)); } if (classificationTypeRegistry == null) { - throw new ArgumentNullException("classificationTypeRegistry"); + throw new ArgumentNullException(nameof(classificationTypeRegistry)); } _textBuffer = textBuffer; @@ -63,15 +63,15 @@ namespace Microsoft.VisualStudio.Text.Classification.Implementation // Validate. if (textView == null) { - throw new ArgumentNullException("textView"); + throw new ArgumentNullException(nameof(textView)); } if (viewTagAggregatorFactory == null) { - throw new ArgumentNullException("viewTagAggregatorFactory"); + throw new ArgumentNullException(nameof(viewTagAggregatorFactory)); } if (classificationTypeRegistry == null) { - throw new ArgumentNullException("classificationTypeRegistry"); + throw new ArgumentNullException(nameof(classificationTypeRegistry)); } _textBuffer = textView.TextBuffer; @@ -336,7 +336,7 @@ namespace Microsoft.VisualStudio.Text.Classification.Implementation return results; } - private int Compare(PointData a, PointData b) + private static int Compare(PointData a, PointData b) { if (a.Position == b.Position) return (b.IsStart.CompareTo(a.IsStart)); // startpoints go before end points when positions are tied |