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
}

View File

@@ -50,7 +50,7 @@ cfg.rb:
#-----| -> String
# 149| enter method
#-----| -> silly
#-----| -> SplatParameter
# 153| enter two_parameters
#-----| -> a
@@ -1543,9 +1543,6 @@ cfg.rb:
# 148| new
#-----| -> Call
# 149| silly
#-----| -> SplatParameter
# 149| SplatParameter
#-----| -> x