public static int Of(IMethodDefinition method, PdbReader pdb, IMetadataHost host) { if (method.HasOperations()) return method.CalculateCyclomaticComplexity(pdb, host); else return 0; }
public static int Of(IMethodDefinition method, PdbReader pdb, IMetadataHost host) { if (method.HasOperations()) return method.CalculateStatements(pdb, host); else return 0; }
public static int Of(IMethodDefinition method, PdbReader pdb, IMetadataHost host) { if (method.HasOperations()) { return(method.CalculateCyclomaticComplexity(pdb, host)); } else { return(0); } }
public static int Of(IMethodDefinition method, PdbReader pdb, IMetadataHost host) { if (method.HasOperations()) { return(method.CalculateStatements(pdb, host)); } else { return(0); } }