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;
}
}