X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.scl.compiler%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Fmodule%2Fcoverage%2FCoverageUtils.java;h=59eb2abea2596d17bf0472121da80a59e3d8170d;hb=a5e69e900dcfcf54a9f39ab754f20467d99b64d3;hp=a70651cb75fa7e551cb9bd35cf022a0b98d26a88;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git 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; }