1 write to TypeToGenerateIn
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
403TypeToGenerateIn = definition as INamedTypeSymbol;
35 references to TypeToGenerateIn
Microsoft.CodeAnalysis.CodeStyle.Fixes (35)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (35)
117Contract.ThrowIfNull(TypeToGenerateIn); 118if (!CodeGenerator.CanAdd(_document.Project.Solution, TypeToGenerateIn, cancellationToken)) 130IsContainedInUnsafeType = _service.ContainingTypesOrSelfHasUnsafeKeyword(TypeToGenerateIn); 137var typeParametersNames = TypeToGenerateIn.GetAllTypeParameters().Select(t => t.Name).ToImmutableArray(); 189Contract.ThrowIfNull(TypeToGenerateIn); 190Contract.ThrowIfNull(TypeToGenerateIn.BaseType); 196var result = FindConstructorToDelegateTo(parameters, expressions, TypeToGenerateIn.InstanceConstructors, cancellationToken) ?? 197FindConstructorToDelegateTo(parameters, expressions, TypeToGenerateIn.BaseType.InstanceConstructors, cancellationToken); 211Contract.ThrowIfNull(TypeToGenerateIn); 224if (TypeToGenerateIn.Equals(constructor.ContainingType) && 245Contract.ThrowIfNull(TypeToGenerateIn); 247var syntaxFacts = GetRequiredLanguageService<ISyntaxFactsService>(TypeToGenerateIn.Language); 248return TypeToGenerateIn.InstanceConstructors.Any(static (c, arg) => arg.self.Matches(c, arg.syntaxFacts), (self: this, syntaxFacts)); 282var allTypeParameters = TypeToGenerateIn.GetAllTypeParameters(); 405return TypeToGenerateIn?.TypeKind is (TypeKind?)TypeKind.Class or (TypeKind?)TypeKind.Struct; 467var members = from t in TypeToGenerateIn.GetBaseTypesAndThis() 468let ignoreAccessibility = t.Equals(TypeToGenerateIn) 528Contract.ThrowIfNull(TypeToGenerateIn); 530return TypeToGenerateIn.MemberNames.Concat( 531from type in TypeToGenerateIn.GetBaseTypes() 585Contract.ThrowIfNull(TypeToGenerateIn); 588var isThis = _delegatedConstructor.ContainingType.OriginalDefinition.Equals(TypeToGenerateIn.OriginalDefinition); 589var delegatingArguments = this.GetRequiredLanguageService<SyntaxGenerator>(TypeToGenerateIn.Language).CreateArguments(_delegatedConstructor.Parameters); 598typeName: TypeToGenerateIn.Name, 610TypeToGenerateIn, 618Contract.ThrowIfNull(TypeToGenerateIn); 627: GetRequiredLanguageService<SyntaxGenerator>(TypeToGenerateIn.Language).CreateAssignmentStatements( 628GetRequiredLanguageService<SyntaxGeneratorInternal>(TypeToGenerateIn.Language), 640Contract.ThrowIfNull(TypeToGenerateIn); 653TypeToGenerateIn, 654GetRequiredLanguageService<SyntaxGenerator>(TypeToGenerateIn.Language).CreateMemberDelegatingConstructor( 655GetRequiredLanguageService<SyntaxGeneratorInternal>(TypeToGenerateIn.Language), 657TypeToGenerateIn.Name, 658TypeToGenerateIn, 660TypeToGenerateIn.IsAbstractClass() ? Accessibility.Protected : Accessibility.Public,