Skip to content

Commit 736b110

Browse files
committed
Ruby: Add change note.
1 parent 879280a commit 736b110

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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.

0 commit comments

Comments
 (0)