Ruby: Include StringComponents in the CFG

This commit is contained in:
Tom Hvitved
2021-12-17 10:59:53 +01:00
committed by Harry Maclean
parent 301d0bbdf8
commit 322f8356dd
2 changed files with 608 additions and 143 deletions

View File

@@ -1350,6 +1350,10 @@ module Trees {
final override ControlFlowTree getChildElement(int i) { result = this.getComponent(i) }
}
private class StringComponentComponentTree extends LeafTree, StringComponent {
StringComponentComponentTree() { not this instanceof StringInterpolationComponent }
}
private class ToplevelTree extends BodyStmtTree, Toplevel {
final override AstNode getBodyChild(int i, boolean rescuable) {
result = this.getBeginBlock(i) and rescuable = true

File diff suppressed because it is too large Load Diff