Arnolyzer.Analyzers.SingleResponsibilityAnalyzers.AA2104FileMustOnlyContainOneTypeDefinitionAnalyzer.IgnoreNodesInsideClassDeclarations C# (CSharp) Méthode

IgnoreNodesInsideClassDeclarations() private static méthode

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