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:
Diffstat (limited to 'src/Text/Def/Internal/TextData/UnicodeWordExtent.cs')
-rw-r--r--src/Text/Def/Internal/TextData/UnicodeWordExtent.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Text/Def/Internal/TextData/UnicodeWordExtent.cs b/src/Text/Def/Internal/TextData/UnicodeWordExtent.cs
index 6ed9e0a..fc355c2 100644
--- a/src/Text/Def/Internal/TextData/UnicodeWordExtent.cs
+++ b/src/Text/Def/Internal/TextData/UnicodeWordExtent.cs
@@ -17,7 +17,9 @@ namespace Microsoft.VisualStudio.Text.Utilities
/// </summary>
public class LineBuffer
{
+#pragma warning disable CA2211 // Non-constant fields should not be visible
public static int BufferSize = 1024; // this is non-constant so unit tests can change it to better test LineBuffer logic
+#pragma warning restore CA2211 // Non-constant fields should not be visible
private readonly ITextSnapshotLine line;
@@ -63,7 +65,7 @@ namespace Microsoft.VisualStudio.Text.Utilities
}
}
- public class UnicodeWordExtent
+ public static class UnicodeWordExtent
{
static public bool FindCurrentToken(SnapshotPoint currentPosition, out SnapshotSpan span)
{