isLoopedPrevSegment(segment) {
    return this.internal.loopedPrevSegments.includes(segment);
  }
Checks a given previous segment is coming from the end of a loop.
@param {CodePathSegment} segment A previous segment to check.
@returns {boolean} `true` if the segment is coming from the end of a loop.