2 writes to TypeToGenerateIn
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Analyzers\Core\CodeFixes\GenerateEnumMember\AbstractGenerateEnumMemberService.State.cs (2)
74
TypeToGenerateIn
= sourceType;
127
TypeToGenerateIn
= typeToGenerateIn;
8 references to TypeToGenerateIn
Microsoft.CodeAnalysis.CodeStyle.Fixes (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)
61
var existingMembers =
TypeToGenerateIn
.GetMembers(IdentifierToken.ValueText);
70
var sourceType = await SymbolFinder.FindSourceDefinitionAsync(
TypeToGenerateIn
, document.Project.Solution, cancellationToken).ConfigureAwait(false) as INamedTypeSymbol;
75
return CodeGenerator.CanAdd(document.Project.Solution,
TypeToGenerateIn
, cancellationToken);