mirror of
https://github.com/github/codeql.git
synced 2025-12-19 10:23:15 +01:00
Python: ObjAPI to ValAPI: WrongNumForArgsInCall: Update affected queries to use objectapi
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import python
|
||||
|
||||
from RaisingNode r, Scope s, ClassObject cls
|
||||
where r.viableExceptionalExit(s, cls)
|
||||
where r.viableExceptionalExit_objectapi(s, cls)
|
||||
select r.getLocation().getStartLine(), r, s.toString(), cls
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import python
|
||||
|
||||
from ExceptFlowNode n, ClassObject cls
|
||||
where n.handles(cls)
|
||||
where n.handles_objectapi(cls)
|
||||
select n.getLocation().getStartLine(), cls.toString()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import python
|
||||
|
||||
from RaisingNode r, ControlFlowNode n, ClassObject ex
|
||||
where r.viableExceptionEdge(n, ex)
|
||||
where r.viableExceptionEdge_objectapi(n, ex)
|
||||
select r.getLocation().getStartLine(), n.getLocation().getStartLine(), r.getNode().toString(),
|
||||
n.getNode().toString(), ex.toString()
|
||||
|
||||
Reference in New Issue
Block a user