private IEnumerable <SyntaxNode> VerifyCatchBlock(CatchBlockSyntax node, SyntaxNode nextBlock) { if (!node.Statements.Any() && NoCommentsBefore(nextBlock)) { yield return(node.CatchStatement); } }
public override void VisitCatchBlock(CatchBlockSyntax node) { State.IncreaseComplexityByNestingPlusOne(node.CatchStatement.CatchKeyword); State.VisitWithNesting(node, base.VisitCatchBlock); }
public override void VisitCatchBlock(CatchBlockSyntax node) { LogicalLineCount++; base.VisitCatchBlock(node); }