Arnolyzer.Analyzers.SingleResponsibilityAnalyzers.AA2104FileMustOnlyContainOneTypeDefinitionAnalyzer.IgnoreNodesInsideClassDeclarations C# (CSharp) Method

IgnoreNodesInsideClassDeclarations() private static method

private static IgnoreNodesInsideClassDeclarations ( Microsoft.CodeAnalysis.SyntaxNode node ) : bool
node Microsoft.CodeAnalysis.SyntaxNode
return bool
        private static bool IgnoreNodesInsideClassDeclarations(SyntaxNode node)
        {
            var kind = node?.Kind();
            return kind != SyntaxKind.ClassDeclaration &&
                   kind != SyntaxKind.StructDeclaration;
        }
    }