Ejemplo n.º 1
0
 public static int Of(IMethodDefinition method, PdbReader pdb, IMetadataHost host)
 {
     if (method.HasOperations())
         return method.CalculateCyclomaticComplexity(pdb, host);
     else
         return 0;
 }
Ejemplo n.º 2
0
 public static int Of(IMethodDefinition method, PdbReader pdb, IMetadataHost host)
 {
     if (method.HasOperations())
         return method.CalculateStatements(pdb, host);
     else
         return 0;
 }
Ejemplo n.º 3
0
 public static int Of(IMethodDefinition method, PdbReader pdb, IMetadataHost host)
 {
     if (method.HasOperations())
     {
         return(method.CalculateCyclomaticComplexity(pdb, host));
     }
     else
     {
         return(0);
     }
 }
Ejemplo n.º 4
0
 public static int Of(IMethodDefinition method, PdbReader pdb, IMetadataHost host)
 {
     if (method.HasOperations())
     {
         return(method.CalculateStatements(pdb, host));
     }
     else
     {
         return(0);
     }
 }