7 references to TypeKindOptionsHelper
Microsoft.CodeAnalysis.Features (7)
GenerateType\AbstractGenerateTypeService.CodeAction.cs (7)
125
typeKindValue = state.IsSimpleNameGeneric ?
TypeKindOptionsHelper
.RemoveOptions(typeKindValue, TypeKindOptions.GenericInCompatibleTypes) : typeKindValue;
126
typeKindValue = state.IsMembersWithModule ?
TypeKindOptionsHelper
.AddOption(typeKindValue, TypeKindOptions.Module) : typeKindValue;
127
typeKindValue = state.IsInterfaceOrEnumNotAllowedInTypeContext ?
TypeKindOptionsHelper
.RemoveOptions(typeKindValue, TypeKindOptions.Interface, TypeKindOptions.Enum) : typeKindValue;
128
typeKindValue = state.IsDelegateAllowed ? typeKindValue :
TypeKindOptionsHelper
.RemoveOptions(typeKindValue, TypeKindOptions.Delegate);
129
typeKindValue = state.IsEnumNotAllowed ?
TypeKindOptionsHelper
.RemoveOptions(typeKindValue, TypeKindOptions.Enum) : typeKindValue;
163
typeKindValueFinal = state.IsSimpleNameGeneric ?
TypeKindOptionsHelper
.RemoveOptions(TypeKindOptions.MemberAccessWithNamespace, TypeKindOptions.GenericInCompatibleTypes) : TypeKindOptions.MemberAccessWithNamespace;
164
typeKindValueFinal = state.IsEnumNotAllowed ?
TypeKindOptionsHelper
.RemoveOptions(typeKindValueFinal, TypeKindOptions.Enum) : typeKindValueFinal;