Package: DelegateSearch

DelegateSearch

nameinstructionbranchcomplexitylinemethod
DelegateSearch()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
caseANotImplementedStmIR(ANotImplementedStmIR)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
isDelegateCall()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

Coverage

1: package org.overture.codegen.mojocg.util;
2:
3: import org.overture.codegen.ir.analysis.AnalysisException;
4: import org.overture.codegen.ir.analysis.DepthFirstAnalysisAdaptor;
5: import org.overture.codegen.ir.statements.ANotImplementedStmIR;
6:
7: public class DelegateSearch extends DepthFirstAnalysisAdaptor
8: {
9:         private boolean isDelegateCall = false;
10:
11:         @Override
12:         public void caseANotImplementedStmIR(ANotImplementedStmIR node)
13:                         throws AnalysisException
14:         {
15:                 isDelegateCall = true;
16:         }
17:
18:         public boolean isDelegateCall()
19:         {
20:                 return isDelegateCall;
21:         }
22: }