use of org.eclipse.jdt.core.dom.ContinueStatement in project AutoRefactor by JnRouvignac.
the class CFGBuilder method buildCFG.
/**
* Builds a CFG for the provided node.
*
* @param node the node for which to build a CFG.
* @param state the blocks liveness state before current node
* @param throwers the thrower blocks information
* @return the blocks liveness state after current node
*/
public LivenessState buildCFG(ContinueStatement node, LivenessState state, ThrowerBlocks throwers) {
final CFGBasicBlock basicBlock = getCFGBasicBlock(node, state);
final Statement targetStmt;
if (node.getLabel() != null) {
targetStmt = findLabeledParentStmt(node);
} else {
targetStmt = findContinuableParentStmt(node);
}
addEdgeToBuild(targetStmt, new CFGEdgeBuilder(basicBlock), false);
return state.copyLiveBasicBlock();
}
Aggregations