makeNext(startIndex, endIndex) {
		return createSegments(
			this,
			startIndex,
			endIndex,
			CodePathSegment.newNext,
		);
	}
Creates new segments in this context and appends them to the end of the
already existing `CodePathSegment`s specified by `startIndex` and
`endIndex`.
@param {number} startIndex The index of the first segment in the context
     that should be specified as previous segments for the newly created segments.
@param {number} endIndex The index of the last segment in the context
     that should be specified as previous segments for the newly created segments.
@returns {Array<CodePathSegment>} An array of the newly created segments.