in ClrHeapAllocationsAnalyzer/AvoidAllocationWithArrayEmptyCodeFix.cs [112:120]
private bool IsInsidePropertyDeclaration(SyntaxNode node, SemanticModel semanticModel)
{
if(node.FindContainer<PropertyDeclarationSyntax>() is PropertyDeclarationSyntax propertyDeclaration && IsPropertyTypeReadonlySequence(semanticModel, propertyDeclaration))
{
return IsAutoPropertyWithGetter(node) || IsArrowExpression(node);
}
return false;
}