Полный контекст, на который вы ссылаетесь:
// The last update in the entire queue
const last = queue.last;
// The last update that is part of the base state.
const baseUpdate = hook.baseUpdate;
const baseState = hook.baseState;
// Find the first unprocessed update.
let first;
if (baseUpdate !== null) {
if (last !== null) {
// For the first update, the queue is a circular linked list where
// `queue.last.next = queue.first`. Once the first update commits, and
// the `baseUpdate` is no longer empty, we can unravel the list.
last.next = null;
}
first = baseUpdate.next;
} else {
first = last !== null ? last.next : null;
}
Ваше мышление верно; last.next = null;
"распутывает" круговой связанный список, устанавливая ссылку last.next
на null
, которая превращает его в линейную цепочку, а не в oop.
Что касается терминологии, я не Я не думаю, что это особенно распространено и не видит прямых прецедентов с небольшим поиском в сети, поэтому, вероятно, они что-то придумали на месте, чтобы описать то, что код делает случайным образом.