CFG: drop getObject from flow of singleton method

This commit is contained in:
Arthur Baars
2020-12-15 14:49:50 +01:00
parent 8501e30b6a
commit fd14770542
2 changed files with 3 additions and 10 deletions

View File

@@ -1203,15 +1203,11 @@ module Trees {
private class SingletonMethodTree extends RescueEnsureBlockTree, SingletonMethod {
final override AstNode getChildNode(int i, boolean rescuable) {
result = this.getObject() and
result = this.getParameters() and
i = 0 and
rescuable = false
or
result = this.getParameters() and
i = 1 and
rescuable = false
or
result = this.getChild(i - 2) and
result = this.getChild(i - 1) and
rescuable = true
}