1 write to IsContainedInUnsafeType
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
126
IsContainedInUnsafeType
= _service.ContainingTypesOrSelfHasUnsafeKeyword(TypeToGenerateIn);
4 references to IsContainedInUnsafeType
Microsoft.CodeAnalysis.Features (4)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (4)
441
var generateUnsafe = !
IsContainedInUnsafeType
&& newParameters.Any(static p => p.RequiresUnsafeModifier());
469
var members = withFields ? SyntaxGeneratorExtensions.CreateFieldsForParameters(_parameters, ParameterToNewFieldMap,
IsContainedInUnsafeType
) :
470
withProperties ? SyntaxGeneratorExtensions.CreatePropertiesForParameters(_parameters, ParameterToNewPropertyMap,
IsContainedInUnsafeType
) :
515
IsContainedInUnsafeType
),