Lines Matching refs:step
16 def _step_kind_func(context, step): argument
17 if (step.current_location.path is None or
18 not os.path.exists(step.current_location.path)):
21 if any(os.path.samefile(step.current_location.path, f)
61 for step in self.steps:
62 if step.step_kind in (StepKind.FUNC, StepKind.FUNC_EXTERNAL,
67 st += '<{}>{}</>\n'.format(color, step)
76 def _get_prev_step_in_this_frame(self, step): argument
83 if s.current_function == step.current_function
84 and s.num_frames == step.num_frames), None)
86 def _get_new_step_kind(self, context, step): argument
87 if step.current_function is None:
91 return _step_kind_func(context, step)
98 if prev_step.num_frames < step.num_frames:
99 return _step_kind_func(context, step)
101 if prev_step.num_frames > step.num_frames:
102 frame_step = self._get_prev_step_in_this_frame(step)
106 if prev_step.current_location.lineno is None or step.current_location.lineno is None:
110 if prev_step.current_location.lineno > step.current_location.lineno:
113 if prev_step.current_location.lineno < step.current_location.lineno:
117 if prev_step.current_location.column > step.current_location.column:
120 if prev_step.current_location.column < step.current_location.column:
126 def new_step(self, context, step): argument
127 assert isinstance(step, StepIR), type(step)
128 step.step_kind = self._get_new_step_kind(context, step)
129 self.steps.append(step)
130 return step