mirror of
https://github.com/spectreconsole/spectre.console.git
synced 2025-10-25 15:19:23 +00:00
Use SymbolEqualityComparer.Default when possible
This commit is contained in:
@@ -47,7 +47,7 @@ public class NoConcurrentLiveRenderablesAnalyzer : SpectreAnalyzer
|
|||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
if (parentInvocations.All(parent =>
|
if (parentInvocations.All(parent =>
|
||||||
parent.TargetMethod.Name != StartMethod || !liveTypes.Contains(parent.TargetMethod.ContainingType)))
|
parent.TargetMethod.Name != StartMethod || !liveTypes.Contains(parent.TargetMethod.ContainingType, SymbolEqualityComparer.Default)))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ public class NoPromptsDuringLiveRenderablesAnalyzer : SpectreAnalyzer
|
|||||||
|
|
||||||
if (parentInvocations.All(parent =>
|
if (parentInvocations.All(parent =>
|
||||||
parent.TargetMethod.Name != "Start" ||
|
parent.TargetMethod.Name != "Start" ||
|
||||||
!liveTypes.Contains(parent.TargetMethod.ContainingType)))
|
!liveTypes.Contains(parent.TargetMethod.ContainingType, SymbolEqualityComparer.Default)))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user