Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f624754

Browse files
committed
Python: Use Value in GetACAll test
That was not possible when using the old Object-API, but in Value-API getACall is defined on all Values.
1 parent 06b67e0 commit f624754

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,7 +1,12 @@
11
| 19 | ControlFlowNode for f() | Function f |
22
| 21 | ControlFlowNode for f() | Function f |
3+
| 22 | ControlFlowNode for C() | class C |
34
| 23 | ControlFlowNode for Attribute() | Function f |
5+
| 23 | ControlFlowNode for Attribute() | Method(Function f, C()) |
46
| 24 | ControlFlowNode for Attribute() | Function C.n |
7+
| 24 | ControlFlowNode for Attribute() | Method(Function C.n, C()) |
58
| 25 | ControlFlowNode for Attribute() | Function C.n |
9+
| 29 | ControlFlowNode for staticmethod() | builtin-class staticmethod |
610
| 33 | ControlFlowNode for Attribute() | Function D.foo |
711
| 34 | ControlFlowNode for Attribute() | Function D.foo |
12+
| 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 ControlFlowNode call, FunctionValue func
3+
from ControlFlowNode call, Value func
44
where call = func.getACall()
55
select call.getLocation().getStartLine(), call.toString(), func.toString()

0 commit comments

Comments
 (0)