X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.scl.compiler%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Fmodule%2Fcoverage%2FCoverageUtils.java;h=59eb2abea2596d17bf0472121da80a59e3d8170d;hp=a70651cb75fa7e551cb9bd35cf022a0b98d26a88;hb=ffdf83729b496d5afe74c7888075bb17ce1c4bbb;hpb=d1a82fe1414c77b97bec886d6a3ae3c5d926c334 diff --git a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/module/coverage/CoverageUtils.java b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/module/coverage/CoverageUtils.java index a70651cb7..59eb2abea 100644 --- a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/module/coverage/CoverageUtils.java +++ b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/module/coverage/CoverageUtils.java @@ -20,7 +20,7 @@ public class CoverageUtils { int totalFunctionCodeSize = 0; int uncoveredFunctionCodeSize = 0; for(BranchPoint branchPoint : entry.getValue()) { - totalFunctionCodeSize += branchPoint.codeSize; + totalFunctionCodeSize += branchPoint.getCodeSize(); uncoveredFunctionCodeSize += uncoveredCodeSize(branchPoint); } int coveredFunctionCodeSize = totalFunctionCodeSize - uncoveredFunctionCodeSize; @@ -99,11 +99,11 @@ public class CoverageUtils { } private static int uncoveredCodeSize(BranchPoint branchPoint) { - if(branchPoint.visitCounter == 0) - return branchPoint.codeSize; + if(branchPoint.getVisitCounter() == 0) + return branchPoint.getCodeSize(); else { int sum = 0; - for(BranchPoint child : branchPoint.children) + for(BranchPoint child : branchPoint.getChildren()) sum += uncoveredCodeSize(child); return sum; }