File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ category : breaking
3+ ---
4+ * The Ruby control flow graph implementation has been completely replaced. This
5+ affects a number of queries slightly. The CFG now includes additional nodes
6+ to more accurately represent certain constructs. This also means that any
7+ existing code that implicitly relies on very specific details about the CFG
8+ may need to be updated. The CFG no longer uses splitting, which means that
9+ AST nodes now have a unique CFG node representation. In particular,
10+ ` ControlFlowNode.getAstNode ` has changed its meaning. The AST-to-CFG mapping
11+ remains one-to-many, but now for a different reason. It used to be because of
12+ splitting, but now it's because of additional "helper" CFG nodes. To get the
13+ (now canonical) CFG node for a given AST node, use
14+ ` Stmt.getControlFlowNode() ` instead.
You can’t perform that action at this time.
0 commit comments