| category | breaking |
|---|
- The C# control flow graph (CFG) implementation has been completely
rewritten. The CFG now includes additional nodes to more accurately represent
certain constructs. This also means that any existing code that implicitly
relies on very specific details about the CFG may need to be updated.
The CFG no longer uses splitting, which means that AST nodes now have a unique
CFG node representation.
Additionally, the following breaking changes have been made:
ControlFlow::Nodehas been renamed toControlFlowNode.ControlFlow::Nodeshas been renamed toControlFlowNodes.BasicBlock.getCallablehas been renamed toBasicBlock.getEnclosingCallable.BasicBlocks.qllhas been deleted.ControlFlowNode.getAstNodehas changed its meaning. The AST-to-CFG mapping remains one-to-many, but now for a different reason. It used to be because of splitting, but now it's because of additional "helper" CFG nodes. To get the (now canonical) CFG node for a given AST node, useControlFlowNode.asExpr()orControlFlowNode.asStmt()orControlFlowElement.getControlFlowNode()instead.