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

Fix/suppress release build violations

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