@@ -370,8 +370,7 @@ YieldIncrementalResults(data, errors, incrementalDataRecords):
370370 - Append {GetCompletedEntry(parent, errors)} to {completed}.
371371 - Remove {node} and all of its descendant nodes from {graph}, except for
372372 any descendant Incremental Data Record nodes with other parents.
373- - Let {hasNext} be {false} if {graph} is empty; otherwise, {true}.
374- - Yield an unordered map containing {completed} and {hasNext}.
373+ - Yield the result of {GetIncrementalResult(graph, completed)}.
375374 - Continue to the next completed Pending Incremental Data node.
376375 - Replace {node} in {graph} with a new node corresponding to the Completed
377376 Incremental Data for {result}.
@@ -444,15 +443,15 @@ GetPendingEntry(pendingResults):
444443 - Append {pendingEntry} to {pending}.
445444- Return {pending}.
446445
447- GetIncrementalResult(graph, incremental, completed , pending):
446+ GetIncrementalResult(graph, completed, incremental , pending):
448447
449448- Let {hasNext} be {false} if {graph} is empty, otherwise, {true}.
450449- Let {incrementalResult} be an unordered map containing {hasNext}.
451- - If {incremental} is not empty:
450+ - If {incremental} is provided and not empty:
452451 - Set the corresponding entry on {incrementalResult} to {incremental}.
453452- If {completed} is not empty:
454453 - Set the corresponding entry on {incrementalResult} to {completed}.
455- - If {pending} is not empty:
454+ - If {pending} is provided and not empty:
456455 - Set the corresponding entry on {incrementalResult} to {pending}.
457456- Return {incrementalResult}.
458457
0 commit comments