提交 0bad66d7 编写于 作者: M Manish Vasani

Rename method

上级 e4a27cf4
...@@ -572,7 +572,7 @@ internal static bool HasUnsuppressedErrors(DiagnosticBag diagnostics) ...@@ -572,7 +572,7 @@ internal static bool HasUnsuppressedErrors(DiagnosticBag diagnostics)
{ {
foreach (var diag in diagnostics.AsEnumerable()) foreach (var diag in diagnostics.AsEnumerable())
{ {
if (diag.IsUnsuppressedError()) if (diag.IsUnsuppressableError())
{ {
return true; return true;
} }
......
...@@ -1378,7 +1378,7 @@ internal bool FilterAndAppendDiagnostics(DiagnosticBag accumulator, IEnumerable< ...@@ -1378,7 +1378,7 @@ internal bool FilterAndAppendDiagnostics(DiagnosticBag accumulator, IEnumerable<
{ {
continue; continue;
} }
else if (filtered.IsUnsuppressedError()) else if (filtered.IsUnsuppressableError())
{ {
hasError = true; hasError = true;
} }
......
...@@ -565,7 +565,7 @@ internal virtual bool IsNotConfigurable() ...@@ -565,7 +565,7 @@ internal virtual bool IsNotConfigurable()
/// Only diagnostics which have default severity error and are tagged as NotConfigurable fall in this bucket. /// Only diagnostics which have default severity error and are tagged as NotConfigurable fall in this bucket.
/// This includes all compiler error diagnostics and specific analyzer error diagnostics that are marked as not configurable by the analyzer author. /// This includes all compiler error diagnostics and specific analyzer error diagnostics that are marked as not configurable by the analyzer author.
/// </summary> /// </summary>
internal bool IsUnsuppressedError() internal bool IsUnsuppressableError()
=> DefaultSeverity == DiagnosticSeverity.Error && IsNotConfigurable(); => DefaultSeverity == DiagnosticSeverity.Error && IsNotConfigurable();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册