2 references to IsViableMemberToAssignTo
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
495
if (!
IsViableMemberToAssignTo
(namedType, member, out _, out var assignedMemberDeclaration, cancellationToken))
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
560
if (
IsViableMemberToAssignTo
(namedType, member, out var memberNode, out var nodeToRemove, cancellationToken))