2 writes to TypeToGenerateIn
Microsoft.CodeAnalysis.Features (2)
src\Analyzers\Core\CodeFixes\GenerateEnumMember\AbstractGenerateEnumMemberService.State.cs (2)
70
TypeToGenerateIn
= sourceType;
123
TypeToGenerateIn
= typeToGenerateIn;
8 references to TypeToGenerateIn
Microsoft.CodeAnalysis.Features (8)
src\Analyzers\Core\CodeFixes\GenerateEnumMember\AbstractGenerateEnumMemberService.CodeAction.cs (5)
26
var languageServices = _document.Project.Solution.Workspace.Services.GetExtendedLanguageServices(_state.
TypeToGenerateIn
.Language);
30
var value = semanticFacts.LastEnumValueHasInitializer(_state.
TypeToGenerateIn
)
31
? EnumValueUtilities.GetNextEnumValue(_state.
TypeToGenerateIn
)
39
_state.
TypeToGenerateIn
,
44
type: _state.
TypeToGenerateIn
,
src\Analyzers\Core\CodeFixes\GenerateEnumMember\AbstractGenerateEnumMemberService.State.cs (3)
57
var existingMembers =
TypeToGenerateIn
.GetMembers(IdentifierToken.ValueText);
66
var sourceType = SymbolFinderInternal.FindSourceDefinition(
TypeToGenerateIn
, document.Project.Solution, cancellationToken) as INamedTypeSymbol;
71
return CodeGenerator.CanAdd(document.Project.Solution,
TypeToGenerateIn
, cancellationToken);