コード例 #1
0
 private SyntaxNode?GetContainer(SyntaxNode root, SyntaxNode node)
 {
     return(_syntaxFacts.GetContainingMemberDeclaration(root, node.SpanStart) ??
            _syntaxFacts.GetContainingTypeDeclaration(root, node.SpanStart));
 }