Beispiel #1
0
 public override void VisitEmptyStatement(EmptyStatementSyntax node)
 {
     if (entryPoint.IsMethodLevel() && node.IsParent <AnonymousFunctionExpressionSyntax>())
     {
         return;
     }
     noscounter++;
     base.VisitEmptyStatement(node);
 }
Beispiel #2
0
 public override void VisitEmptyStatement(EmptyStatementSyntax node)
 {
     if (entryNode is AnonymousFunctionExpressionSyntax && embeddedNode is AnonymousFunctionExpressionSyntax)
     {
         return;
     }
     if (_weComeFromMethod && _weInAnonymousMethod)
     {
         return;
     }
     if (!node.IsParent <AnonymousObjectCreationExpressionSyntax>())
     {
         InsertLLOCMap(node.GetLocation());
     }
     base.VisitEmptyStatement(node);
 }