示例#1
0
 public override void VisitLockStatement(LockStatementSyntax node)
 {
     if (entryPoint.IsMethodLevel() && node.IsParent <AnonymousFunctionExpressionSyntax>())
     {
         return;
     }
     noscounter++;
     base.VisitLockStatement(node);
 }
 public override void VisitLockStatement(LockStatementSyntax node)
 {
     if (entryPoint.IsMethodLevel() && node.IsParent <AnonymousFunctionExpressionSyntax>())
     {
         return;
     }
     IncreaseHeight();
     EmbeddednessConsideredToIncrease();
     base.VisitLockStatement(node);
     currentNL--;
     EmbeddednessConsideredToDecrease();
 }