예제 #1
0
 public override void VisitInitializerExpression(InitializerExpressionSyntax node)
 {
     if (entryNode is AnonymousFunctionExpressionSyntax && embeddedNode is AnonymousFunctionExpressionSyntax)
     {
         return;
     }
     if (_weComeFromMethod && _weInAnonymousMethod)
     {
         return;
     }
     if (node.IsParent <AnonymousObjectCreationExpressionSyntax>())
     {
         return;
     }
     InsertLLOCMap(node.GetLocation());
     base.VisitInitializerExpression(node);
 }