mirror of
https://github.com/github/codeql.git
synced 2026-02-20 08:53:49 +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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user