Jump To Constructor Property
When the "Parameters" list is empty, LW Python jumps to the method.
if the following are true:
- expression state at time t = "call_build_args"
- Parameters List at time t = [ ]
- the expression at time t = Python constructor with name: class_name and arguments: args
- line number of method "__init__" of class class_name in (Class Map at time t) = line
then the line at time (t + 1) = line + 1
if the following are true:
- expression state at time 25 = "call_build_args"
- Parameters List at time 25 = [ ]
- the expression at time 25 =
Person("John", "Smith", 25)
- line number of method "__init__" of class "Person" in (Class Map at time 25) = 2
then the line at time (25 + 1) = 2 + 1
Try stepping through the simulator to see LW Python jump inside the method.
Code Editor
LW Python State
Current Line | 1 | Current Tab | 0 | Time | 0 |
LW Python Simulator
Comments
Please log in to add comments