Jump To Constructor Tab 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 tab at time (t + 1) = 2

After LW Python has processed all method parameters, it updates the tab number to 2. For example, 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 tab at time (25 + 1) = 2

Try stepping through the simulator to see LW Python update the tab number to 2.

Code Editor
LW Python State
Current Line1Current Tab0Time0
LW Python Simulator

Comments

Please log in to add comments