dartora

_ModCatch

_ModCatch is an internal helper class used by ModificationListener to represent a single modification scope. Each call to ModificationListener.start() pushes a new _ModCatch onto the listener’s private stack. The catch records how many modification steps occur within its scope and provides methods to record steps and to finalise the scope.

Fields

Methods

_ModCatch is not exported publicly; it is purely internal. Its existence allows the listener to track nested scopes and to combine their step counts when they end.