6 writes to TypeToGenerateIn
Microsoft.CodeAnalysis.Features (6)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateConversionService.State.cs (2)
74
TypeToGenerateIn
= typeToGenerateIn;
98
TypeToGenerateIn
= typeToGenerateIn;
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateDeconstructMethodService.State.cs (1)
48
TypeToGenerateIn
= typeToGenerateIn;
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateMethodService.State.cs (2)
100
TypeToGenerateIn
= typeToGenerateIn;
225
TypeToGenerateIn
= typeToGenerateIn;
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.State.cs (1)
61
TypeToGenerateIn
= await SymbolFinder.FindSourceDefinitionAsync(TypeToGenerateIn, document.Project.Solution, cancellationToken).ConfigureAwait(false) as INamedTypeSymbol;
17 references to TypeToGenerateIn
Microsoft.CodeAnalysis.Features (17)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateMethodService.State.cs (1)
110
if (!ContainingType.Interfaces.Contains(
TypeToGenerateIn
))
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.CodeAction.cs (5)
67
var syntaxFactory = _document.Project.Solution.Services.GetLanguageServices(_state.
TypeToGenerateIn
.Language).GetService<SyntaxGenerator>();
78
generateMethodBodies: _state.
TypeToGenerateIn
.TypeKind != TypeKind.Interface)),
79
_state.
TypeToGenerateIn
,
94
generateMethodBodies: _state.
TypeToGenerateIn
.TypeKind != TypeKind.Interface)),
95
_state.
TypeToGenerateIn
,
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.cs (4)
49
var canGenerateAbstractly = state.
TypeToGenerateIn
.IsAbstract &&
50
!state.
TypeToGenerateIn
.IsStatic &&
51
state.
TypeToGenerateIn
.TypeKind != TypeKind.Interface &&
57
var semanticFacts = document.Project.Solution.Workspace.Services.GetExtendedLanguageServices(state.
TypeToGenerateIn
.Language).GetService<ISemanticFactsService>();
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.State.cs (7)
61
TypeToGenerateIn = await SymbolFinder.FindSourceDefinitionAsync(
TypeToGenerateIn
, document.Project.Solution, cancellationToken).ConfigureAwait(false) as INamedTypeSymbol;
62
if (
TypeToGenerateIn
.IsErrorType())
67
if (!ValidateTypeToGenerateIn(
TypeToGenerateIn
, IsStatic, ClassInterfaceModuleStructTypes))
72
if (!CodeGenerator.CanAdd(document.Project.Solution,
TypeToGenerateIn
, cancellationToken))
81
var existingMethods =
TypeToGenerateIn
85
var destinationProvider = document.Project.Solution.Workspace.Services.GetExtendedLanguageServices(
TypeToGenerateIn
.Language);
89
IsContainedInUnsafeType = service.ContainingTypesOrSelfHasUnsafeKeyword(
TypeToGenerateIn
);