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