8 writes to TypeToGenerateInOpt
Microsoft.CodeAnalysis.Features (8)
GenerateType\AbstractGenerateTypeService.State.cs (8)
185TypeToGenerateInOpt = null; 291TypeToGenerateInOpt = null; 300TypeToGenerateInOpt = null; 309TypeToGenerateInOpt = null; 321TypeToGenerateInOpt = (INamedTypeSymbol)symbol; 329TypeToGenerateInOpt = null; 355TypeToGenerateInOpt = service.DetermineTypeToGenerateIn(semanticModel, SimpleName, cancellationToken); 393TypeToGenerateInOpt = (INamedTypeSymbol)symbol.OriginalDefinition;
19 references to TypeToGenerateInOpt
Microsoft.CodeAnalysis.Features (19)
GenerateType\AbstractGenerateTypeService.cs (7)
130if (state.TypeToGenerateInOpt != null) 219var canUse = state.TypeToGenerateInOpt == null 221: s => state.TypeToGenerateInOpt.GetAllTypeParameters().All(t => t.Name != s); 246if (!intoNamespace && state.TypeToGenerateInOpt != null) 250if (outerTypeSymbol != null && outerTypeSymbol.IsContainedWithin(state.TypeToGenerateInOpt)) 266var availableOuterTypeParameters = !intoNamespace && state.TypeToGenerateInOpt != null 267? 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)
183if (IsAttribute && TypeToGenerateInOpt.GetAllTypeParameters().Any()) 188return TypeToGenerateInOpt != null || NamespaceToGenerateInOpt != null; 286if (TypeToGenerateInOpt != null) 288if (TypeToGenerateInOpt.TypeKind is not TypeKind.Class and 295var symbol = SymbolFinder.FindSourceDefinition(TypeToGenerateInOpt, document.Project.Solution, cancellationToken); 325if (TypeToGenerateInOpt != null) 327if (!CodeGenerator.CanAdd(document.Project.Solution, TypeToGenerateInOpt, cancellationToken)) 356if (TypeToGenerateInOpt != null) 358NamespaceToGenerateInOpt = TypeToGenerateInOpt.ContainingNamespace.ToDisplayString(format);