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/TextSearch/TextSearchTagger.cs
parentcf974b266fb428d846e2e16a25a4eeb8f635c26f (diff)
Updating to VS-Platform 15.8.519 (29d85337c7d2af248a692fd65ac37b444551e4cf).
Diffstat (limited to 'src/Text/Impl/TextSearch/TextSearchTagger.cs')
-rw-r--r--src/Text/Impl/TextSearch/TextSearchTagger.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Text/Impl/TextSearch/TextSearchTagger.cs b/src/Text/Impl/TextSearch/TextSearchTagger.cs
index 6a8852b..150a67b 100644
--- a/src/Text/Impl/TextSearch/TextSearchTagger.cs
+++ b/src/Text/Impl/TextSearch/TextSearchTagger.cs
@@ -19,7 +19,7 @@ namespace Microsoft.VisualStudio.Text.Find.Implementation
/// <remarks>
/// This tagger -- like most others -- will not raise a TagsChanged event when the buffer changes.
/// </remarks>
- class TextSearchTagger<T> : ITextSearchTagger<T> where T : ITag
+ internal sealed class TextSearchTagger<T> : ITextSearchTagger<T> where T : ITag
{
// search service to use for doing the real search
ITextSearchService2 _searchService;
@@ -103,12 +103,12 @@ namespace Microsoft.VisualStudio.Text.Find.Implementation
{
if ((searchOptions & FindOptions.SearchReverse) == FindOptions.SearchReverse)
{
- throw new ArgumentException("FindOptions.SearchReverse is invalid as searches are performed forwards to ensure all matches in a requested search span are found.", "searchOptions");
+ throw new ArgumentException("FindOptions.SearchReverse is invalid as searches are performed forwards to ensure all matches in a requested search span are found.", nameof(searchOptions));
}
if ((searchOptions & FindOptions.Wrap) == FindOptions.Wrap)
{
- throw new ArgumentException("FindOptions.Wrap is invalid as searches are performed forwards with no wrapping to ensure all matches in a requested span are found.", "searchOptions");
+ throw new ArgumentException("FindOptions.Wrap is invalid as searches are performed forwards with no wrapping to ensure all matches in a requested span are found.", nameof(searchOptions));
}
_searchTerms.Add(new BackgroundSearch<T>(_searchService, _buffer, searchTerm, searchOptions, tagFactory, this.ResultsCalculated));