diff options
Diffstat (limited to 'src/Text/Impl/TagAggregator')
-rw-r--r-- | src/Text/Impl/TagAggregator/TagAggregator.cs | 4 | ||||
-rw-r--r-- | src/Text/Impl/TagAggregator/TagAggregatorFactoryService.cs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Text/Impl/TagAggregator/TagAggregator.cs b/src/Text/Impl/TagAggregator/TagAggregator.cs index 2f84741..90005ff 100644 --- a/src/Text/Impl/TagAggregator/TagAggregator.cs +++ b/src/Text/Impl/TagAggregator/TagAggregator.cs @@ -128,7 +128,7 @@ namespace Microsoft.VisualStudio.Text.Tagging.Implementation public IEnumerable<IMappingTagSpan<T>> GetTags(IMappingSpan span) { if (span == null) - throw new ArgumentNullException("span"); + throw new ArgumentNullException(nameof(span)); if (this.disposed) throw new ObjectDisposedException("TagAggregator"); @@ -186,7 +186,7 @@ namespace Microsoft.VisualStudio.Text.Tagging.Implementation public IEnumerable<IMappingTagSpan<T>> GetAllTags(IMappingSpan span, CancellationToken cancel) { if (span == null) - throw new ArgumentNullException("span"); + throw new ArgumentNullException(nameof(span)); if (this.disposed) throw new ObjectDisposedException("TagAggregator"); diff --git a/src/Text/Impl/TagAggregator/TagAggregatorFactoryService.cs b/src/Text/Impl/TagAggregator/TagAggregatorFactoryService.cs index 1b743a5..d4a62b3 100644 --- a/src/Text/Impl/TagAggregator/TagAggregatorFactoryService.cs +++ b/src/Text/Impl/TagAggregator/TagAggregatorFactoryService.cs @@ -57,7 +57,7 @@ namespace Microsoft.VisualStudio.Text.Tagging.Implementation public ITagAggregator<T> CreateTagAggregator<T>(ITextBuffer textBuffer, TagAggregatorOptions options) where T : ITag { if (textBuffer == null) - throw new ArgumentNullException("textBuffer"); + throw new ArgumentNullException(nameof(textBuffer)); return new TagAggregator<T>(this, null, this.BufferGraphFactoryService.CreateBufferGraph(textBuffer), options); @@ -75,7 +75,7 @@ namespace Microsoft.VisualStudio.Text.Tagging.Implementation public ITagAggregator<T> CreateTagAggregator<T>(ITextView textView, TagAggregatorOptions options) where T : ITag { if (textView == null) - throw new ArgumentNullException("textView"); + throw new ArgumentNullException(nameof(textView)); return new TagAggregator<T>(this, textView, textView.BufferGraph, options); } |