@@ -373,8 +373,7 @@ YieldIncrementalResults(data, errors, incrementalDataRecords):
373373 - Append {GetCompletedEntry(parent, errors)} to {completed}.
374374 - Remove {node} and all of its descendant nodes from {graph}, except for
375375 any descendant Incremental Data Record nodes with other parents.
376- - Let {hasNext} be {false} if {graph} is empty; otherwise, {true}.
377- - Yield an unordered map containing {completed} and {hasNext}.
376+ - Yield the result of {GetIncrementalResult(graph, completed)}.
378377 - Continue to the next completed Pending Incremental Data node.
379378 - Replace {node} in {graph} with a new node corresponding to the Completed
380379 Incremental Data for {result}.
@@ -447,15 +446,15 @@ GetPendingEntry(pendingResults):
447446 - Append {pendingEntry} to {pending}.
448447- Return {pending}.
449448
450- GetIncrementalResult(graph, incremental, completed , pending):
449+ GetIncrementalResult(graph, completed, incremental , pending):
451450
452451- Let {hasNext} be {false} if {graph} is empty, otherwise, {true}.
453452- Let {incrementalResult} be an unordered map containing {hasNext}.
454- - If {incremental} is not empty:
453+ - If {incremental} is provided and not empty:
455454 - Set the corresponding entry on {incrementalResult} to {incremental}.
456455- If {completed} is not empty:
457456 - Set the corresponding entry on {incrementalResult} to {completed}.
458- - If {pending} is not empty:
457+ - If {pending} is provided and not empty:
459458 - Set the corresponding entry on {incrementalResult} to {pending}.
460459- Return {incrementalResult}.
461460
0 commit comments