Arnolyzer.Analyzers.EncapsulationAnalyzers.AA1101ClassPropertiesShouldBePubliclyRead_OnlyAnalyzer.DoNotDescendIntoTypeDeclarations C# (CSharp) Метод

DoNotDescendIntoTypeDeclarations() приватный статический Метод

private static DoNotDescendIntoTypeDeclarations ( Microsoft.CodeAnalysis.SyntaxNode node ) : bool
node Microsoft.CodeAnalysis.SyntaxNode
Результат bool
        private static bool DoNotDescendIntoTypeDeclarations(SyntaxNode node)
        {
            var kind = node?.Kind();
            return kind != SyntaxKind.ClassDeclaration &&
                   kind != SyntaxKind.StructDeclaration;
        }