static private void UpdateStatistics(SyntacticComplexity next) { // update maxs if (MaxLoops < next.Loops) MaxLoops = next.Loops; if (MaxJoins < next.JoinPoints) MaxJoins = next.JoinPoints; if (MaxInstructions < next.Instructions) MaxInstructions = next.Instructions; // update totals TotalLoops += next.Loops; TotalJoins += next.JoinPoints; TotalInstructions += next.Instructions; }
static private void UpdateStatistics(SyntacticComplexity next) { // update maxs if (MaxLoops < next.Loops) { MaxLoops = next.Loops; } if (MaxJoins < next.JoinPoints) { MaxJoins = next.JoinPoints; } if (MaxInstructions < next.Instructions) { MaxInstructions = next.Instructions; } // update totals TotalLoops += next.Loops; TotalJoins += next.JoinPoints; TotalInstructions += next.Instructions; }