5 writes to ContainingType
Microsoft.CodeAnalysis.Features (5)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateConversionService.State.cs (2)
67ContainingType = document.SemanticModel.GetEnclosingNamedType(node.SpanStart, cancellationToken); 91ContainingType = document.SemanticModel.GetEnclosingNamedType(node.SpanStart, cancellationToken);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateDeconstructMethodService.State.cs (1)
59ContainingType = semanticModel.GetEnclosingNamedType(targetVariables.SpanStart, cancellationToken);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateMethodService.State.cs (2)
104ContainingType = semanticModel.GetEnclosingNamedType(methodDeclaration.SpanStart, cancellationToken); 153ContainingType = semanticModel.GetEnclosingNamedType(SimpleNameOpt.SpanStart, cancellationToken);
7 references to ContainingType
Microsoft.CodeAnalysis.Features (7)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateConversionService.State.cs (2)
68if (ContainingType == null) 92if (ContainingType == null)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateDeconstructMethodService.State.cs (1)
60if (ContainingType == null)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateMethodService.State.cs (4)
105if (ContainingType == null) 110if (!ContainingType.Interfaces.Contains(TypeToGenerateIn)) 154if (ContainingType == null) 217semanticDocument, ContainingType, SimpleNameOrMemberAccessExpression, cancellationToken,