mirror of
https://github.com/github/codeql.git
synced 2026-02-19 16:33:40 +01:00
CFG: drop getObject from flow of singleton method
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user