예제 #1
0
 public override void VisitTryStatement(TryStatementSyntax node)
 {
     if (entryPoint.IsMethodLevel() && node.IsParent <AnonymousFunctionExpressionSyntax>())
     {
         return;
     }
     noscounter++;
     base.VisitTryStatement(node);
 }
예제 #2
0
 public override void VisitTryStatement(TryStatementSyntax node)
 {
     if (entryPoint.IsMethodLevel() && node.IsParent <AnonymousFunctionExpressionSyntax>())
     {
         return;
     }
     IncreaseHeight();
     EmbeddednessConsideredToIncrease();
     base.VisitTryStatement(node);
     currentNL--;
     EmbeddednessConsideredToDecrease();
 }