return RuntimeHelper.call(this, vertex);
}
public Object visitCaseNode(CaseNode node) {
// FIXME eval ===
Vertex vertex = createEmptyVertex(node);
if (node.getCaseNode() != null) {
createVertex(node.getCaseNode());
}
ListNode cases = node.getCases();
if (cases != null) {
for (int i = 0; i < cases.size(); i++) {
WhenNode when = (WhenNode) cases.get(i);
if (when.getBodyNode() != null) {
Vertex v = createVertex(when.getBodyNode());
addEdgeAndUpdate(v, vertex);
}
}
}
if (node.getElseNode() != null) {
Vertex v = createVertex(node.getElseNode());
addEdgeAndUpdate(v, vertex);
}
return vertex;
}