Skip to content

Commit a5289bd

Browse files
committed
Python: Use Object in CallRefersTo test
Since other things than FunctionObject can be called ;)
1 parent 7b8b4af commit a5289bd

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
| 19 | ControlFlowNode for f() | Function f |
22
| 21 | ControlFlowNode for f() | Function f |
3+
| 22 | ControlFlowNode for C() | class C |
4+
| 23 | ControlFlowNode for Attribute() | Attribute |
5+
| 24 | ControlFlowNode for Attribute() | Attribute |
36
| 25 | ControlFlowNode for Attribute() | Function n |
7+
| 29 | ControlFlowNode for staticmethod() | builtin-class staticmethod |
48
| 33 | ControlFlowNode for Attribute() | Function foo |
59
| 34 | ControlFlowNode for Attribute() | Function foo |
10+
| 34 | ControlFlowNode for D() | class D |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import python
22

3-
from CallNode call, FunctionObject func
3+
from CallNode call, Object func
44
where call.getFunction().refersTo(func)
55
select call.getLocation().getStartLine(), call.toString(), func.toString()

0 commit comments

Comments
 (0)