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