2 writes to TypeToGenerateIn
Microsoft.CodeAnalysis.Features (2)
src\Analyzers\Core\CodeFixes\GenerateEnumMember\AbstractGenerateEnumMemberService.State.cs (2)
71
TypeToGenerateIn
= sourceType;
124
TypeToGenerateIn
= typeToGenerateIn;
8 references to TypeToGenerateIn
Microsoft.CodeAnalysis.Features (8)
src\Analyzers\Core\CodeFixes\GenerateEnumMember\AbstractGenerateEnumMemberService.CodeAction.cs (5)
24
var languageServices = _document.Project.Solution.Workspace.Services.GetExtendedLanguageServices(_state.
TypeToGenerateIn
.Language);
28
var value = semanticFacts.LastEnumValueHasInitializer(_state.
TypeToGenerateIn
)
29
? EnumValueUtilities.GetNextEnumValue(_state.
TypeToGenerateIn
)
37
_state.
TypeToGenerateIn
,
42
type: _state.
TypeToGenerateIn
,
src\Analyzers\Core\CodeFixes\GenerateEnumMember\AbstractGenerateEnumMemberService.State.cs (3)
58
var existingMembers =
TypeToGenerateIn
.GetMembers(IdentifierToken.ValueText);
67
var sourceType = (await SymbolFinderInternal.FindSourceDefinitionAsync(
TypeToGenerateIn
, document.Project.Solution, cancellationToken).ConfigureAwait(false)) as INamedTypeSymbol;
72
return CodeGenerator.CanAdd(document.Project.Solution,
TypeToGenerateIn
, cancellationToken);