MCPcopy Create free account
hub / github.com/microsoft/debugpy / next

Method next

tests/timeline.py:857–871  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

855
856 @property
857 def next(self):
858 if self.timeline is None:
859 return None
860
861 with self.timeline.frozen():
862 was_last = self is self.timeline.last
863 occ = self._next
864
865 if was_last:
866 # The .next property of the last occurrence in a timeline can change
867 # at any moment when timeline isn't frozen. So if it wasn't frozen by
868 # the caller, this was an unsafe operation, and we should complain.
869 self.timeline.expect_frozen()
870
871 return occ
872
873 def preceding(self):
874 it = self.and_preceding()

Callers

nothing calls this directly

Calls 2

frozenMethod · 0.80
expect_frozenMethod · 0.80

Tested by

no test coverage detected