提交 c7c337a5 编写于 作者: M Manish Vasani

Fix/suppress release build violations

上级 ad5582a0
...@@ -123,7 +123,9 @@ public static bool AnyAssociatedViewHasFocus(ITextBuffer textBuffer) ...@@ -123,7 +123,9 @@ public static bool AnyAssociatedViewHasFocus(ITextBuffer textBuffer)
} }
[Conditional("DEBUG")] [Conditional("DEBUG")]
#pragma warning disable CA1822 // Mark members as static - accesses instance members within #if DEBUG
private void DebugRegisterView_NoLock(ITextView textView) private void DebugRegisterView_NoLock(ITextView textView)
#pragma warning restore CA1822 // Mark members as static
{ {
#if DEBUG #if DEBUG
if (s_registeredViews.Add(textView)) if (s_registeredViews.Add(textView))
......
...@@ -104,15 +104,15 @@ private void DebugRecordCurrentThread() ...@@ -104,15 +104,15 @@ private void DebugRecordCurrentThread()
private void DebugVerifyThread() private void DebugVerifyThread()
=> Contract.ThrowIfFalse(Thread.CurrentThread == _thread); => Contract.ThrowIfFalse(Thread.CurrentThread == _thread);
#else #else
private void DebugRecordInitialStackTrace() private static void DebugRecordInitialStackTrace()
{ {
} }
private void DebugRecordCurrentThread() private static void DebugRecordCurrentThread()
{ {
} }
private void DebugVerifyThread() private static void DebugVerifyThread()
{ {
} }
#endif #endif
......
...@@ -161,7 +161,7 @@ private static void MakeProjectsAndDocumentsRooted(TestWorkspace workspace) ...@@ -161,7 +161,7 @@ private static void MakeProjectsAndDocumentsRooted(TestWorkspace workspace)
return; return;
} }
private void AddAnalyzerConfigDocumentWithOptions(TestWorkspace workspace, OptionsCollection options) private static void AddAnalyzerConfigDocumentWithOptions(TestWorkspace workspace, OptionsCollection options)
{ {
Debug.Assert(options != null); Debug.Assert(options != null);
var analyzerConfigText = GenerateAnalyzerConfigText(options); var analyzerConfigText = GenerateAnalyzerConfigText(options);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册