Skip to content

Commit

Permalink
Add missing def statement to leaf statement visitor
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbattle committed Dec 20, 2021
1 parent 27bd905 commit 8fcfbcd
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import com.fujitsu.vdmj.tc.statements.TCCaseStmtAlternative;
import com.fujitsu.vdmj.tc.statements.TCCasesStatement;
import com.fujitsu.vdmj.tc.statements.TCCyclesStatement;
import com.fujitsu.vdmj.tc.statements.TCDefStatement;
import com.fujitsu.vdmj.tc.statements.TCDurationStatement;
import com.fujitsu.vdmj.tc.statements.TCElseIfStatement;
import com.fujitsu.vdmj.tc.statements.TCErrorCase;
Expand Down Expand Up @@ -316,6 +317,20 @@ public C caseLetDefStatement(TCLetDefStatement node, S arg)
all.addAll(node.statement.apply(this, arg));
return all;
}

@Override
public C caseDefStatement(TCDefStatement node, S arg)
{
C all = newCollection();

for (TCDefinition def: node.equalsDefs)
{
all.addAll(visitorSet.applyDefinitionVisitor(def, arg));
}

all.addAll(node.statement.apply(this, arg));
return all;
}

@Override
public C casePeriodicStatement(TCPeriodicStatement node, S arg)
Expand Down

0 comments on commit 8fcfbcd

Please sign in to comment.