Faithful port of Luau::detail::drain (Analysis/src/TopoSortStatements.cpp:404-497).
Luau::detail::drain
Analysis/src/TopoSortStatements.cpp:404-497
Drain Q until the target’s depends arcs are satisfied. target is always added to the result.
Q
depends
target