1 write to IsContainedInUnsafeType
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
130
IsContainedInUnsafeType
= _service.ContainingTypesOrSelfHasUnsafeKeyword(TypeToGenerateIn);
4 references to IsContainedInUnsafeType
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (4)
592
var generateUnsafe = !
IsContainedInUnsafeType
&& newParameters.Any(static p => p.RequiresUnsafeModifier());
620
var members = withFields ? SyntaxGeneratorExtensions.CreateFieldsForParameters(_parameters, ParameterToNewFieldMap,
IsContainedInUnsafeType
) :
621
withProperties ? SyntaxGeneratorExtensions.CreatePropertiesForParameters(_parameters, ParameterToNewPropertyMap,
IsContainedInUnsafeType
) :
666
IsContainedInUnsafeType
),