8 writes to TypeToGenerateInOpt
Microsoft.CodeAnalysis.Features (8)
GenerateType\AbstractGenerateTypeService.State.cs (8)
190TypeToGenerateInOpt = null; 296TypeToGenerateInOpt = null; 305TypeToGenerateInOpt = null; 314TypeToGenerateInOpt = null; 326TypeToGenerateInOpt = (INamedTypeSymbol)symbol; 334TypeToGenerateInOpt = null; 360TypeToGenerateInOpt = service.DetermineTypeToGenerateIn(semanticModel, SimpleName, cancellationToken); 398TypeToGenerateInOpt = (INamedTypeSymbol)symbol.OriginalDefinition;
19 references to TypeToGenerateInOpt
Microsoft.CodeAnalysis.Features (19)
GenerateType\AbstractGenerateTypeService.cs (7)
134if (state.TypeToGenerateInOpt != null) 223var canUse = state.TypeToGenerateInOpt == null 225: s => state.TypeToGenerateInOpt.GetAllTypeParameters().All(t => t.Name != s); 250if (!intoNamespace && state.TypeToGenerateInOpt != null) 254if (outerTypeSymbol != null && outerTypeSymbol.IsContainedWithin(state.TypeToGenerateInOpt)) 270var availableOuterTypeParameters = !intoNamespace && state.TypeToGenerateInOpt != null 271? state.TypeToGenerateInOpt.GetAllTypeParameters()
GenerateType\AbstractGenerateTypeService.Editor.cs (1)
555_state.TypeToGenerateInOpt,
GenerateType\AbstractGenerateTypeService.GenerateNamedType.cs (2)
323var availableOuterTypeParameters = !_intoNamespace && _state.TypeToGenerateInOpt != null 324? _state.TypeToGenerateInOpt.GetAllTypeParameters()
GenerateType\AbstractGenerateTypeService.State.cs (9)
188if (IsAttribute && TypeToGenerateInOpt.GetAllTypeParameters().Any()) 193return TypeToGenerateInOpt != null || NamespaceToGenerateInOpt != null; 291if (TypeToGenerateInOpt != null) 293if (TypeToGenerateInOpt.TypeKind is not TypeKind.Class and 300var symbol = await SymbolFinder.FindSourceDefinitionAsync(TypeToGenerateInOpt, document.Project.Solution, cancellationToken).ConfigureAwait(false); 330if (TypeToGenerateInOpt != null) 332if (!CodeGenerator.CanAdd(document.Project.Solution, TypeToGenerateInOpt, cancellationToken)) 361if (TypeToGenerateInOpt != null) 363NamespaceToGenerateInOpt = TypeToGenerateInOpt.ContainingNamespace.ToDisplayString(format);